set permission policy
Some checks failed
Build and Publish / BuildAndDeploy (push) Successful in 3m0s
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled

This commit is contained in:
matst80
2025-05-13 18:42:09 +02:00
parent 2f04c1d754
commit 54037741be

View File

@@ -243,6 +243,7 @@ func main() {
order = prevOrder order = prevOrder
} }
w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("Content-Type", "text/html; charset=utf-8")
w.Header().Set("Permissions-Policy", "payment=(self \"https://js.stripe.com\" \"https://m.stripe.network\" \"https://js.playground.kustom.co\")")
w.WriteHeader(http.StatusOK) w.WriteHeader(http.StatusOK)
w.Write([]byte(fmt.Sprintf(tpl, order.HTMLSnippet))) w.Write([]byte(fmt.Sprintf(tpl, order.HTMLSnippet)))
}) })