跳至內容
選單
此問題已被標幟
3327 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 25
1519
1
3月 22
5013
3
7月 20
13088
2
3月 15
5644
0
3月 15
4008