Add CORS example (#512)

This commit is contained in:
David Pedersen
2021-11-13 22:18:14 +01:00
committed by GitHub
parent e58336621d
commit 20fabd87e9
2 changed files with 69 additions and 0 deletions
+10
View File
@@ -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"] }