Skip to Content
Menu
This question has been flagged
2916 Views

Hello,

We're trying to build an Ionic app that communicates with Odoo via APIs. However, we get this error:



Access to XMLHttpRequest at '*Odoo.sh Staging DB Link Here*' has been blocked by CORS policy


We have already allowed CORS in our backend using something like this:


@http.route('/route/<id>', type='http', cors='*', csrf=False, auth="user")
def method(self, id, **kwargs):


Someone recommended adding some code to our htaccess file.


So my question is, where can I find my htaccess file on Odoo.sh OR where is the correct place to create one?


Any help is appreciated, Thanks.


Avatar
Discard
Related Posts Replies Views Activity
0
Jul 25
175
1
Jun 25
1863
1
Jul 25
849
1
Apr 25
1522
2
Jan 25
1683