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 CORS policy #1161

Closed
piotr-yuxuan opened this issue Jul 12, 2019 · 1 comment
Closed

Update CORS policy #1161

piotr-yuxuan opened this issue Jul 12, 2019 · 1 comment

Comments

@piotr-yuxuan
Copy link

$ curl -X GET -i http://localhost:8081/config
HTTP/1.1 200 OK
Date: Fri, 12 Jul 2019 23:07:20 GMT
Content-Type: application/vnd.schemaregistry.v1+json
Vary: Accept-Encoding, User-Agent
Content-Length: 29
Server: Jetty(9.4.14.v20181114)

{"compatibilityLevel":"FULL"}%

Using standard, up-to-date schema-registry shipped in Confluent CLI, response doesn't deal with CORS. As such it breaks this useful side project lensesio/schema-registry-ui#88:

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

Would you mind state whether you might fix this? If yes, could you provide a link to check progress made on that issue and when it's solved?

Cheerio ;-)

@piotr-yuxuan
Copy link
Author

In my humble opinion, at least same domain should be allowed. It would be nice to have a list of custom allowed origins.

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