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

chore: Support CORS #339

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

gonzalezzfelipe
Copy link
Contributor

@gonzalezzfelipe gonzalezzfelipe commented Sep 25, 2024

Add CORS layer to tonic server. The CorsLayer::new() behaves as having no layer at all. Dynamically adding the layer using the mutable server object ( let mut server = ...; if cors_enabled { server = server.layer(cors) }) is not quite possible out of the box, because it is not possible to dynamically add layers to a tonic server (hyperium/tonic#1800)

@scarmuega scarmuega merged commit b0b1486 into txpipe:main Oct 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants