Skip to content

Commit

Permalink
fix next dev headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez committed May 30, 2023
1 parent 3f1f27c commit f79936d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ts/next.js/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ export function HeaderTags() {
content="default-src 'self'"
httpEquiv="Content-Security-Policy"
/>
{
process?.env?.NODE_ENV === "development"
? <meta
content="default-src 'self' 'unsafe-inline' 'unsafe-eval'"
httpEquiv='Content-Security-Policy'/>
: null

}
</Head>
);
}

0 comments on commit f79936d

Please sign in to comment.