Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2950 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jul. 25
2669
3
jul. 25
493
1
jul. 25
194
1
jun. 25
1954
1
jul. 25
929