-
Notifications
You must be signed in to change notification settings - Fork 337
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
Access Control Headers for the HTTP API #409
Comments
I'm working on a Docker configuration that proxies the requests through something with the needed CORS headers, but for a user that doesn't have that time or knowledge, this could pose a barrier. |
We can either
I've seen both in action. I think first option is better. Any thoughts @yskopets ? |
The wildcard might be a concern for some adopters, but maybe there can be an option to override settings for the HTTP API or make it so that the HTTP API can be turned off? |
I think, we can go ahead with Since We can revisit this decision later on. |
Summary
When trying to access the HTTP API endpoints through a front end app, the API is not supplying an
Access-Control-Allow-Origin
header, which means the requests get blocked by CORS in the browser.Steps To Reproduce
vue-cli-service
on its default porthttp://localhost:8080
/meshes/
) with either axios or the fetch API (with a'Access-Control-Allow-Origin': '*'
header supplied)Additional Details & Logs
curl
requests and requests made through a tool like Insomnia work perfectly.The text was updated successfully, but these errors were encountered: