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

how to set CORS allow? #105

Open
KrishnaPG opened this issue Apr 10, 2016 · 0 comments
Open

how to set CORS allow? #105

KrishnaPG opened this issue Apr 10, 2016 · 0 comments

Comments

@KrishnaPG
Copy link

While trying to access the juttle-engine service (hosted on Azure Linux VM) from browser (localhost) juttle-viewer, encountering:

Fetch API cannot load http://xyz.westus.cloudapp.azure.com/api/v0/directory?path=/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:1337' is therefore not allowed access. The response had HTTP status code 404. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

How to resolve this situation?

  • how to set CORS allow header on the server side (juttle-engine service)?
  • else anything can be done on the client (juttle-viewer express app) side?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant