Skip to content
Snippets Groups Projects
Unverified Commit d7376d95 authored by Nutomic's avatar Nutomic Committed by GitHub
Browse files

Fix cors_origin wildcard (fixes #4214) (#4221)

parent 809fc05c
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,7 @@ fn cors_config(settings: &Settings) -> Cors {
(Some(origin), false) => {
// Need to call send_wildcard() explicitly, passing this into allowed_origin() results in error
if cors_origin_setting.as_deref() == Some("*") {
Cors::default().send_wildcard()
Cors::default().allow_any_origin().send_wildcard()
} else {
Cors::default()
.allowed_origin(&origin)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment