I am trying to get setup with netlify dev
so that I can troubleshoot my CSP policy via my local server.
When I run netlify dev
it doesn’t deliver any custom headers it seems?
My netlify.toml atm:
[build]
publish = "public/"
command = "hugo"
[build.environment]
HUGO_ENV = "production"
HUGO_VERSION = "0.74.3"
RUBY_VERSION = "2.6.2"
NODE_VERSION = "15.3.0"
[dev]
command = "hugo server --cleanDestinationDir"
[context.branch-deploy]
command = "hugo -D --buildFuture --buildDrafts -b $DEPLOY_PRIME_URL"
[context.v1]
command = "hugo -b https://v1.jasik.xyz"
[context.v2]
command = "hugo -b https://v2.jasik.xyz"
[context.deploy-preview]
command = "hugo -b $DEPLOY_PRIME_URL"
[[redirects]]
from = "/donate/"
to = "https://ko-fi.com/calebjasik/"
[[redirects]]
from = "/resume"
to = "/caleb-jasik-resume.pdf"
[[redirects]]
from = "/resume.pdf"
to = "/caleb-jasik-resume.pdf"
[[redirects]]
from = "https://jasik-xyz.netlify.com/*"
to = "https://jasik.xyz/:splat"
status = 301
force = true
[[redirects]]
from = "https://jasik-xyz.netlify.app/*"
to = "https://jasik.xyz/:splat"
status = 301
force = true
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy-Report-Only = "default-src 'self'; report-uri https://jasikxyz.report-uri.com/r/d/csp/wizard; report-to default"
Referrer-Policy = "no-referrer, strict-origin-when-cross-origin"
Report-To = "{'group':'default','max_age':31536000,'endpoints':[{'url':'https://jasikxyz.report-uri.com/a/d/g'}],'include_subdomains':true}"
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
X-Content-Type-Options = "nosniff"
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"