loco-rs / loco

🚂 🦀 The one-person framework for Rust for side-projects and startups
https://loco.rs
Apache License 2.0
5.45k stars 235 forks source link

Fix Cors default_allow_origins() and add allow_credentials #965

Closed edg-l closed 1 week ago

edg-l commented 2 weeks ago

"any" wasnt parsed correctly, the "*" wildcard is recognized by tower

jondot commented 1 week ago

@edg-l looks like this triggered a parsing failure -- it says that it prefers "any" rather than "*", so I've reverted back to "any" in a different PR could you elaborate on how you arrived at this fix?