From 5d07d4eb3a08d439f40d32e6cf53fbd6173e5f35 Mon Sep 17 00:00:00 2001 From: yrrah Date: Thu, 3 Aug 2023 11:19:55 -0400 Subject: [PATCH] set CORP header (#97) Co-authored-by: hartenstineh --- handle/handle.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handle/handle.go b/handle/handle.go index 6e85835..1c9c99b 100644 --- a/handle/handle.go +++ b/handle/handle.go @@ -168,6 +168,7 @@ func AddCorsWildcardHeaders(serve http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Access-Control-Allow-Headers", "*") + w.Header().Set("Cross-Origin-Resource-Policy", "cross-origin") serve(w, r) } }