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

Cors not working #1082

Closed
Apoorva64 opened this issue Feb 13, 2024 · 2 comments
Closed

Cors not working #1082

Apoorva64 opened this issue Feb 13, 2024 · 2 comments

Comments

@Apoorva64
Copy link
Contributor

Apoorva64 commented Feb 13, 2024

Describe the bug

see microcks/microcks-quarkus#22
When calling a mock from the browser we get a CORS error as non of the CORS headers are present.

Expected behavior

Dynamically generated CORS headers should be returned by Microcks

Actual behavior

No CORS headers are being returned by Microcks

How to Reproduce?

  1. Launch nightly version of microcks
  2. import a REST mock
  3. call the mock in the browser console using "fetch" on https://microcks.io
  4. see the cors error in network tab

Microcks version or git rev

nightly

Install method (docker-compose, helm chart, operator, docker-desktop extension,...)

docker-compose

@Apoorva64
Copy link
Contributor Author

@lbroudoux
We are handling the CORS in "WebConfiguration.java" but at the same time Spring Security is handling CORS. By disabling CORS handling in Spring Security it works again.

@lbroudoux
Copy link
Member

Thank you very much for quick resolution and PR! 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants