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.