Odoo 19 app

API CORS

Your React app on app.example.com calls Odoo on erp.example.com and the browser stops it with a CORS error. This module lets you say, per API, which websites may call it, with which methods and headers. Everything else stays blocked, and you can see who was turned away.

API CORS for Odoo 19

What it does

Nothing is allowed until you add a rule. Then only what the rule says.

Pick JSON-2, JSON-RPC, XML-RPC or the web session login and the paths are filled in for you. Or type your own path patterns, one per line.

https://app.example.com, https://*.example.com for every subdomain, http://localhost:3000 for development, or a star for public read-only endpoints.

The OPTIONS preflight is answered before Odoo routes the call, so JSON-RPC routes and POST-only XML-RPC routes work from the browser too.