Skip to content

Commit

Permalink
GH-54 fix(CSP): allow connecting to Sanity API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Jul 6, 2020
1 parent 8a9763f commit 9152bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add-netlify-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ${routesConfig
// Allow script coming from same origin, inline and Google / Google Analytics (incl. recaptcha)
`script-src 'self' 'unsafe-inline' https://www.google.com/ https://www.gstatic.com/ https://www.google-analytics.com https://recaptcha.net`,
// Allow XHR to same origin and Google Analytics
`connect-src 'self' https://www.google-analytics.com`,
`connect-src 'self' https://www.google-analytics.com https://*.api.sanity.io`,
// Allow webmanifest files from same origin
`manifest-src 'self'`,
// Allow prefetching files from same origin
Expand Down

0 comments on commit 9152bda

Please sign in to comment.