Skip to content

Commit

Permalink
Turn on CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Dec 21, 2024
1 parent 9333e69 commit 13a7358
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const CSP = `
style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com;
base-uri 'self';
object-src 'none';
connect-src 'self' https://*.google-analytics.com https://*.adsabs.harvard.edu https://o1060269.ingest.sentry.io;
font-src 'self' https://cdnjs.cloudflare.com https://fonts.gstatic.com;
connect-src 'self' https://*.google-analytics.com https://*.adsabs.harvard.edu https://o1060269.ingest.sentry.io https://*.scixplorer.org https://www.googletagmanager.com;
font-src 'self' data: https://cdnjs.cloudflare.com https://fonts.gstatic.com;
frame-src https://www.youtube-nocookie.com https://www.google.com https://www.google.com/recaptcha/;
form-action 'self';
img-src * data: https://www.google.com https://www.gstatic.com https://i.ytimg.com https://s.ytimg.com;
Expand Down Expand Up @@ -81,7 +81,7 @@ const nextConfig = {
'accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(self), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()',
},
{
key: 'Content-Security-Policy-Report-Only',
key: 'Content-Security-Policy',
value: CSP,
},
],
Expand Down

0 comments on commit 13a7358

Please sign in to comment.