Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update orca-mock API with CORS headers #16

Closed
k-jano opened this issue May 27, 2020 · 1 comment · Fixed by #17
Closed

Update orca-mock API with CORS headers #16

k-jano opened this issue May 27, 2020 · 1 comment · Fixed by #17
Labels
enhancement New feature or request

Comments

@k-jano
Copy link
Member

k-jano commented May 27, 2020

After changes with using orca-mock API in orca-ui, to use application in every browser CORS headers need to be present on requested source.

Here is an example error message:

Access to XMLHttpRequest at 'http://localhost:5000/v1/graph' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Now in development process browser with disabled web security option can be used. In case of Google Chrome:
google-chrome --disable-web-security --user-data-dir="/tmp/chrome-test"

@filwie
Copy link
Member

filwie commented May 28, 2020

It would be nice to add reverse proxy in front of our services so that we can have the same origin. The API could be in a subpath /api. I will try to update docker-compose with additional container soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants