OHDSI / Atlas

ATLAS is an open source software tool for researchers to conduct scientific analyses on standardized observational data
http://atlas-demo.ohdsi.org/
Apache License 2.0
258 stars 126 forks source link

CORS error: action-location is not allowed #2882

Closed isc-rsingh closed 10 months ago

isc-rsingh commented 10 months ago

I have Atlas installed at: http://clinicalresearch.intersystems.com:8081/atlas/

You can see this error when accessing: Access to fetch at 'http://107.22.127.201:8080/WebAPI/i18n/locales' from origin 'http://clinicalresearch.intersystems.com:8081' has been blocked by CORS policy: Request header field action-location is not allowed by Access-Control-Allow-Headers in preflight response.

I have modified webapi/pom.xml to disable CORS, changing lines 159 and 160 to:

    <security.cors.enabled>false</security.cors.enabled>
    <security.origin>*</security.origin>

Any idea why this happens? Is the action-location header needed?

image