add mumble.stream to CORS allow

This commit is contained in:
Brandon Thomas committed 2020-05-31 01:40:11 -04:00
1 parent 64419fa64e
commit 243d16b7f1
1 file changed
+4 -2
+4 -2
View File
@@ -160,10 +160,12 @@ async fn run_server(app_state: AppState, server_args: ServerArgs) -> std::io::Re
.wrap(Cors::new()
.allowed_origin("http://localhost:12345")
.allowed_origin("http://localhost:8080")
.allowed_origin("http://trumped.com")
.allowed_origin("https://trumped.com")
.allowed_origin("http://jungle.horse")
.allowed_origin("https://jungle.horse")
.allowed_origin("http://mumble.stream")
.allowed_origin("https://mumble.stream")
.allowed_origin("http://trumped.com")
.allowed_origin("https://trumped.com")
.allowed_methods(vec!["GET", "POST"])
.allowed_headers(vec![http::header::ACCEPT])
.allowed_header(http::header::CONTENT_TYPE)