Julio Elixir Julio Elixir - 4 months ago 130
Android Question

XMLHttpRequest cannot load http://localhost:8088/web/webclient/version_info error in ionic login to odoo server

When I trying to login with ionic app to odoo server. I got below quoted error. if it is because of CORS, how can I config in local odoo server without using nginx?

XMLHttpRequest cannot load http://localhost:8088/web/webclient/version_info. Response to preflight request doesn't pass access control check: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:8100' is therefore not allowed access. The credentials mode of an XMLHttpRequest is controlled by the withCredentials attribute.


It's because of the web browsers. It's prevent cross domain can solved by using emulators or devices.