We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da41dad commit 9f3fe4eCopy full SHA for 9f3fe4e
src/__csp-nonce.ts
@@ -32,7 +32,7 @@ const handler = async (request: Request, context: Context) => {
32
request.headers.get("accept")?.startsWith("text/html") || isCurl;
33
const isHTMLResponse = response.headers
34
.get("content-type")
35
- .startsWith("text/html");
+ ?.startsWith("text/html");
36
const shouldTransformResponse = isGET && isHTMLRequest && isHTMLResponse;
37
if (!shouldTransformResponse) {
38
// @ts-expect-error
0 commit comments