parent
809fc05cb3
commit
d7376d9541
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ fn cors_config(settings: &Settings) -> Cors {
|
||||||
(Some(origin), false) => {
|
(Some(origin), false) => {
|
||||||
// Need to call send_wildcard() explicitly, passing this into allowed_origin() results in error
|
// Need to call send_wildcard() explicitly, passing this into allowed_origin() results in error
|
||||||
if cors_origin_setting.as_deref() == Some("*") {
|
if cors_origin_setting.as_deref() == Some("*") {
|
||||||
Cors::default().send_wildcard()
|
Cors::default().allow_any_origin().send_wildcard()
|
||||||
} else {
|
} else {
|
||||||
Cors::default()
|
Cors::default()
|
||||||
.allowed_origin(&origin)
|
.allowed_origin(&origin)
|
||||||
|
|
Loading…
Reference in a new issue