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

feat: 🎸 support OPTIONS requests (CORS pre-flight requests) #538

Merged
merged 4 commits into from
Sep 6, 2022

Conversation

severo
Copy link
Collaborator

@severo severo commented Sep 6, 2022

Fixes #532

@severo severo mentioned this pull request Sep 6, 2022
@severo
Copy link
Collaborator Author

severo commented Sep 6, 2022

Maybe we want to do more tests, @SBrandeis... Do you have examples of actual requests made by autotrain-ui?

The services are responsible to set it if required (note that when
credentials are passed in the request, the Access-Control-Allow-Origin
header must not return *, but the origin)
nginx no longer caches the proxied responses
@severo
Copy link
Collaborator Author

severo commented Sep 6, 2022

Merging. We can add tests later.

@severo severo merged commit 53e165e into main Sep 6, 2022
@severo severo deleted the add-cors-middleware branch September 6, 2022 18:33
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

Successfully merging this pull request may close these issues.

Add CORS middleware
1 participant