summaryrefslogtreecommitdiffstats
path: root/netlify.toml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-09 12:15:15 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-09 13:23:25 +0200
commitb3c39de2e5265cb81d0268d08c0cd4cb47a93f0d (patch)
tree26582d034e4e3449c403fe5e0b9a80283dec2948 /netlify.toml
parentd13879fd26c04fe6bc5c871d79dc3fee11d4a7a2 (diff)
downloadgohugo-theme-ed-b3c39de2e5265cb81d0268d08c0cd4cb47a93f0d.tar.gz
Update headers for Netlify preview mode
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlify.toml b/netlify.toml
index afa9e75..a819a2d 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -27,7 +27,7 @@
# Deploy Preview context: all deploys generated from
# a pull/merge request will inherit these settings.
[context.deploy-preview]
- command = 'hugo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public'
+ command = './netlify-update-csp-headers.rb; hugo --source=exampleSite --buildDrafts --buildFuture --baseURL ${DEPLOY_PRIME_URL} --destination ../public'
[context.deploy-preview.environment]
HUGO_ENV = 'development'
@@ -89,7 +89,7 @@
# (including inline scripts and event-handling HTML attributes).
Content-Security-Policy = """
default-src 'self';
- script-src 'self' *.netlify.app *.netlify.com *.googletagmanager.com;
+ script-src 'self' *.googletagmanager.com;
style-src 'self';
img-src 'self' data: *.google-analytics.com *.googletagmanager.com *.gstatic.com;
font-src 'self';