Add modrinth.com to CORS (#59)
Co-authored-by: Redblueflame <redblueflame1@gmail.Com>
This commit is contained in:
parent
3da0c07bcd
commit
0dfa378e38
@ -176,6 +176,7 @@ async fn main() -> std::io::Result<()> {
|
||||
.wrap(
|
||||
Cors::new()
|
||||
.allowed_origin("http://localhost:3000")
|
||||
.allowed_origin("https://modrinth.com")
|
||||
.allowed_methods(vec!["GET", "POST"])
|
||||
.allowed_headers(vec![http::header::AUTHORIZATION, http::header::ACCEPT])
|
||||
.allowed_header(http::header::CONTENT_TYPE)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user