yezyilomo / odoo-rest-api

Module which expose Odoo as a REST API
MIT License
203 stars 163 forks source link

Cross Origin Issue #16

Closed briceamk closed 4 years ago

briceamk commented 4 years ago

Hello, First I want to thnks your for this great work. When I send request to odoo with Postman, it work very well, but when i use angular i get this error

Access to XMLHttpRequest at 'http://192.168.10.133:8005/api/hr.employee?session_id=f86f5ac6d2f53213c1c4d963fdf6c21233685876' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

can't you help me please?

naibor commented 4 years ago

Hello, You will have to consume the exposed endpoints with your own API

yezyilomo commented 4 years ago

Am closing this as your case looks like it has something to do with Angular rather than this module.