Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3343 Näkymät

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
helmik. 25
1522
1
maalisk. 22
5015
3
heinäk. 20
13089
2
maalisk. 15
5645
0
maalisk. 15
4011