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

simple CORS example should use a scheme+hostname #109

Closed
covener opened this issue Oct 4, 2023 · 1 comment
Closed

simple CORS example should use a scheme+hostname #109

covener opened this issue Oct 4, 2023 · 1 comment
Assignees

Comments

@covener
Copy link
Member

covener commented Oct 4, 2023

finish/src/test/java/it/io/openliberty/guides/cors/TestData.java and the server.xml CORS config should use http://openliberty.io rather than a bare hostname.

Origin request headers and Access-Control-Allow-Origin response headers are scheme + host + optional port.

Unfortunately if you simulate a cross-origin request with a non browser and make the same mistake on both ends, the CORS Feature will echo back the hostname in the Origin header.

@gkwan-ibm
Copy link
Member

close

  • the guide was updated

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

3 participants