Skip to content

Commit

Permalink
Remove CSP for google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
andychase committed Oct 28, 2024
1 parent a75fcd3 commit 6891061
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
const { i18n } = require('./next-i18next.config');

const cspHeader = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline';
style-src 'self' 'unsafe-inline';
img-src 'self' blob: data:;
font-src 'self';
object-src 'none';
base-uri 'self';
form-action 'self';
frame-ancestors 'none';
upgrade-insecure-requests;
`

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand All @@ -32,10 +20,6 @@ const nextConfig = {
{
source: "/(.*)",
headers: [
{
key: "Content-Security-Policy",
value: cspHeader.replace(/\n/g, ''),
},
{
key: "X-Content-Type-Options",
value: "nosniff",
Expand Down

0 comments on commit 6891061

Please sign in to comment.