fix(CORS): do not add "*" as an allowed host

This commit is contained in:
phundrak committed 2026-05-14 21:27:58 +02:00
1 parent 093687ab89
commit 3d4de5cd8b
1 file changed
+2
+2
View File
@@ -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,