Add modrinth.com to CORS (#59)

Co-authored-by: Redblueflame <redblueflame1@gmail.Com>
This commit is contained in:
Geometrically 2020-09-02 08:24:42 -07:00 committed by GitHub
parent 3da0c07bcd
commit 0dfa378e38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)