From ed773391441b090263b05131e7cf3f45b3d449f3 Mon Sep 17 00:00:00 2001 From: Catherine Date: Tue, 11 Nov 2025 17:55:45 +0000 Subject: [PATCH] Remove deprecated COOP/COEP assignment based on content type. --- src/pages.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/pages.go b/src/pages.go index 1c02140..c5744ff 100644 --- a/src/pages.go +++ b/src/pages.go @@ -13,7 +13,6 @@ import ( "net/url" "os" "path" - "slices" "strconv" "strings" "time" @@ -285,18 +284,6 @@ func getPage(w http.ResponseWriter, r *http.Request) error { if entry != nil && entry.ContentType != nil { w.Header().Set("X-Content-Type-Options", "nosniff") w.Header().Set("Content-Type", *entry.ContentType) - // - mediaType := getMediaType(*entry.ContentType) - if slices.Contains( - []string{"", "text/html", "application/xhtml+xml", "text/javascript"}, - mediaType, - ) { - // allow the use of multi-threading in WebAssembly; - // note that a Web Worker is considered a type of frame for COEP purposes - w.Header().Set("Cross-Origin-Embedder-Policy", "credentialless") - w.Header().Set("Cross-Origin-Opener-Policy", "same-origin") - } - // } customHeaders, err := ApplyHeaderRules(manifest, &url.URL{Path: entryPath})