mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
parent
809fc05cb3
commit
d7376d9541
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user