Announcement

Collapse
No announcement yet.

CORS on the self-hosted version

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CORS on the self-hosted version

    Hello team-
    I am working on embedding EspoCRM in another website - currently login fails because of CORS. It is a self-hosted version, so I am hoping I can disable CORS requirement by updating the config. Has anyone does this or have the exact steps to do this?
    Best,
    Gunjan

  • #2
    If you planing use direct ESPO calls from other web pages you can add this to avoid CORS block: location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # # Custom headers and headers various browsers *should* be OK with but

    Comment

    Working...
    X