Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3350 Переглядів

Hi,

We are using Odoo v11 and we have exposed some APIs for our mobile development written in ionic 4 via 'jsonrpc’. Since Content-Type is 'application/json' for the APIs, IONIC while running makes a preflight OPTIONS call. Odoo instead of returning goes on to make the actual call for the method, since OPTIONS call doesn't have the body it ends up being a 400 bad request error.

Are there any specific settings to be enabled for OPTIONS to return back without hitting the methods? 

Thanks,

Chandrashekar

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лют. 25
1534
1
бер. 22
5020
3
лип. 20
13101
2
бер. 15
5647
0
бер. 15
4016