From 0dfa378e383cbf73120999ae8eec35ee010f619f Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Wed, 2 Sep 2020 08:24:42 -0700 Subject: [PATCH] Add modrinth.com to CORS (#59) Co-authored-by: Redblueflame --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index a0a29e383..ff1be43c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)