|
|
@ -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)
|
|
|
|