Here’s my netlify.toml
[build]
command = "hugo --gc"
publish = "public"
[build.environment]
HUGO_VERSION = "0.73.0"
[[redirects]]
from = "/login"
to = "#####"
status = 301
[[redirects]]
from = "/switch"
to = "#####"
status = 301
[[headers]]
for = "/*"
[[headers.values]]
Content-Security-Policy = "default-src 'self' 'unsafe-eval' 'unsafe-inline' cdn.jsdelivr.net www.google.com form.typeform.com/ embed.typeform.com"
The #####
's are valid urls that I have verified work. For some reason Netlify is still using the default headers for my site. Anyone have a guess why?