mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Add CORS example (#512)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "example-cors"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
axum = { path = "../../axum" }
|
||||
tokio = { version = "1.0", features = ["full"] }
|
||||
tower-http = { version = "0.1", features = ["cors"] }
|
||||
Reference in New Issue
Block a user