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

Invalid CORS Request Error with Castlemock Docker and Web Application #614

Open
davidsotelo1505 opened this issue Mar 28, 2023 · 0 comments

Comments

@davidsotelo1505
Copy link

I am experiencing an "Invalid CORS Request" error when trying to access a Castlemock instance running in a Docker container from a web application. I have already added CORS configurations in the web.xml file, but the error persists. The error occurs when making an OPTIONS request to a REST endpoint with the necessary headers.

I suspect the issue may be related to the server hosting Castlemock or the proxy server redirecting requests. I have checked the server logs and verified that the allowedOrigins property in the CORS configuration matches the domain and port of my web application. I would appreciate any guidance on troubleshooting this issue or any suggestions on additional steps to resolve the problem.

Thank you in advance for your help.

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