indigo-service CORS
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
I've installed the docker image of the indigo service and it's up and running. Directly calling the API works fine, however now I get CORS erros. An example:
> Access to fetch at 'http://localhost:50738/info' from origin 'http://localhost:4200' 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.
The `/info` url is the first thing Ketcher calls to determine whether the indigo-service is up and running.
So I searched around and found [the nginx conf you're using](https://github.com/epam/Indigo/blob/master/utils/indigo-service/nginx/nginx.conf) where you actually enable CORS.
Now I'm at my wit's end and I'll have to dig deep to understand why the nginx CORS header doesn't apply here. But before I do that, I thought maybe you already know and I'm just missing something. Do you have an idea what the issue could be?
No worries if you don't, then I'll just spend some time researching and I'll eventually post the solution here.
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.