fix(CORS): do not add "*" as an allowed host
This commit is contained in:
@@ -59,8 +59,10 @@ impl From<CorsSettings> for Cors {
|
||||
);
|
||||
let mut cors = Self::new();
|
||||
for origin in &val.allowed_origins {
|
||||
if origin != "*" {
|
||||
cors = cors.allow_origin(origin);
|
||||
}
|
||||
}
|
||||
cors = cors.allow_methods(vec![
|
||||
Method::GET,
|
||||
Method::POST,
|
||||
|
||||
Reference in New Issue
Block a user