Skip to content

Commit 075ab81

Browse files
authored
fix(cors): allow all http methods
Signed-off-by: Simon Felix Conrad <simon.felix.conrad@proton.me>
1 parent 34a411d commit 075ab81

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/labrinth/src/util/ratelimit.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ where
177177
"*".parse().unwrap(),
178178
);
179179

180+
headers.insert(
181+
actix_web::http::header::HeaderName::from_str(
182+
"Access-Control-Allow-Methods",
183+
)
184+
.unwrap(),
185+
"*".parse().unwrap(),
186+
);
187+
180188
headers.insert(
181189
actix_web::http::header::HeaderName::from_str(
182190
"Access-Control-Expose-Headers",

0 commit comments

Comments
 (0)