Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How do I add custom HTTP headers to a hosted static site?
How do I setup Digital Ocean’s static sites with custom headers, like “Referrer-Policy”?
Netlify let’s you set custom headers for static sites by adding to their TOML file:
[[headers]] for = "/*" [headers.values] Referrer-Policy = "no-referrer" X-Content-Type-Options = "nosniff" X-Frame-Options = "deny" X-XSS-Protection = "1; mode=block"
What’s the equivalent for an app spec on Digital Ocean?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×