-
Notifications
You must be signed in to change notification settings - Fork 181
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
Support for CORS headers #74
Comments
We don’t have that, yet. But I bet it can be added through Spring Boot... |
That would be brilliant. I'm not a Java person myself, but I'll keep looking at this ticket, it's a very interesting feature. |
@vroudge: Spring (Boot) offers CORS configuration (see: https://spring.io/blog/2015/06/08/cors-support-in-spring-framework). The most simple way to enable each and every origin would be to add a global mapping for each and every API S3Mock provides. My current idea is to enabled origins and/or API endpoints via configuration. Before doing that, can give please give the usecase you're working on? Do you have any examples, code-snippets that let me verify this for your usecase? Thanks |
version 2.2.2 adds CORS headers for all origins (wildcard pattern). |
This change results in two identical There was already a cross origin http header being set here
I think the |
@mikemonteith thx for alerting me - I'll remove the explicit setting you mentioned, just opened a PR :) |
Wow @afranken that was fast! |
@mikemonteith thanks for providing the solution with the report :) I was just merging the latest dependabot updates and then release, so it was easy to add in this trivial fix. |
Hello!
I'm trying to use this to test a browser-based uploader. I get issues related to CORS. Is there anyway to set the cross origin headers with S3Mock ?
The text was updated successfully, but these errors were encountered: