set CORP header (#97)

Co-authored-by: hartenstineh <harry.hartenstine@us.af.mil>
This commit is contained in:
yrrah 2023-08-03 11:19:55 -04:00 committed by GitHub
parent 84bb96052a
commit 5d07d4eb3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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