countly-server icon indicating copy to clipboard operation
countly-server copied to clipboard

Allow multiple CORS origins

Open pultho opened this issue 4 years ago • 0 comments

Our application can be access via multiple frontend domains but Countly only works for one matching domain.

Expected Behavior

Have the ability to allow multiple origins for CORS per project.

Current Behavior

Only one domain is excepted, the other one is denied with 'Origin not allowed by Allow-Access-Control-Origin'.

Possible Solution

Define multiple source origins and allow them via CORS header. Alternative: Option to disable CORS entirely.

Steps to Reproduce (for bugs)

  1. Setup some website 'a.com' and 'b.com' accessing the same Countly server
  2. Add a project to Sentry for one of the websites
  3. Only one of them is being accepted because the other one is rejected due the different domain.

Your Environment

Community Edition v20.11

pultho avatar Jun 29 '21 08:06 pultho