Skip to Content
Menu
This question has been flagged
2461 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
Sep 24
3
0
Sep 24
347
1
Jun 24
663
1
Mar 24
913
2
Mar 24
4342