Skip to main content

CORS and origins

Neuroon validates the Origin of each request differently depending on the endpoint. This page is the single source of truth.

Canonical matrix (Integrations API)

EndpointAuthAccepts absent Origin (server-to-server)
POST /api/integrations/v1/products/syncAuthorization: Bearer <api-key>Yes
GET /api/integrations/v1/productsAuthorization: Bearer <api-key>Yes
POST /api/integrations/v1/conversionsAuthorization: Bearer <api-key>Yes
GET /api/integrations/v1/shopAuthorization: Bearer <api-key>Yes

Calls to /api/integrations/* are server-to-server. If a browser Origin is detected that doesn't match the registered domain, the backend may reject the request. Use these APIs from your server, not the browser.

Typical errors

CodeCauseFix
401 UnauthorizedInvalid or missing API KeyCheck the Authorization: Bearer <api-key> header
403 ForbiddenOrigin doesn't match the registered domainAdd the domain in the dashboard

Further reading