countly-server
countly-server copied to clipboard
Allow multiple CORS origins
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)
- Setup some website 'a.com' and 'b.com' accessing the same Countly server
- Add a project to Sentry for one of the websites
- Only one of them is being accepted because the other one is rejected due the different domain.
Your Environment
Community Edition v20.11