From 2f675185466e1d02b842a5bdbe1b440f28136c14 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 20 May 2021 21:12:15 +0200 Subject: [PATCH] Add ACAO header --- src/http/handler.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/handler.rs b/src/http/handler.rs index 2b7e0a3..4bf6585 100644 --- a/src/http/handler.rs +++ b/src/http/handler.rs @@ -90,6 +90,7 @@ fn endpoint_handler( endpoint: &str, ) { res.add_header("Cache-Control", "no-store"); + res.add_header("Access-Control-Allow-Origin", "*"); let mut error = |error: Error, client: &mut super::HttpStream| { println!("{}", error.to_string());