Hi All,
I’m having some trouble with my Atlas install.
I’ve worked through to the last stages but now i’m hitting a CORS error:
*> *
> Access to fetch at ‘http://localhost:8080/Webapisource/sources’ from origin ‘http://localhost’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
*> *
> Access to fetch at ‘http://localhost:8080/Webapinotifications?hide_statuses=’ from origin ‘http://localhost’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
*> *
> Access to fetch at ‘http://localhost:8080/Webapisource/daimon/priority’ from origin ‘http://localhost’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
*> *
> Access to fetch at ‘http://localhost:8080/Webapinotifications?hide_statuses=’ from origin ‘http://localhost’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
I’ve tried the following:
1.
changing the setting.xml file at C:\Git\OHDSI\WebAPI\WebAPIConfig\settings.xml
Line 26:
<security.cors.enabled>true</security.cors.enabled>
Changed to
<security.cors.enabled>false</security.cors.enabled>
No change.
Adding Access-Control-Allow-Origin header in IIS with a value of *
No change.
I’m not sure where to start with this to be honest! any help would be appreciated.
Thanks, John