Skip to content

Commit

Permalink
temp:XXS
Browse files Browse the repository at this point in the history
  • Loading branch information
brucedonovan committed Oct 16, 2023
1 parent 67b3a6e commit 4f6ec65
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
import Document, { Html, Head, Main, NextScript } from 'next/document';


// function randomNonce(length = 32) {
// let nonce = '';
// const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
// const charactersLength = characters.length;
// for (let i = 0; i < length; i++) {
// nonce += characters.charAt(Math.floor(Math.random() * charactersLength));
// }
// return nonce;
// }

export default class MyDocument extends Document {
render() {
// const nonce = randomNonce();
// const csp = `object-src 'none'; base-uri 'none'; script-src 'unsafe-eval' 'nonce-${nonce}' 'strict-dynamic'`

return (
<Html>
<Head>
Expand All @@ -24,7 +12,7 @@ export default class MyDocument extends Document {
rel="stylesheet"
/>
<link rel="shortcut icon" href="/favicons/favicon.ico" />
{/* <meta httpEquiv="Content-Security-Policy" content={csp} /> */}
<meta httpEquiv='X-Frame-Options' content='DENY' />
</Head>
<body>
<Main />
Expand Down

0 comments on commit 4f6ec65

Please sign in to comment.