How does Astro HTTP apply headers?
Headers are applied using Astro middleware based on a single configuration file loaded at startup.
Astro & HTTP
Clear answers explaining Astro HTTP’s fail-closed header model and configuration system.
Headers are applied using Astro middleware based on a single configuration file loaded at startup.
No. Only headers explicitly enabled in the configuration file are sent.
No. Configuration values are deep-frozen and cannot be mutated at runtime.
Astro HTTP fails closed. No headers are applied if safe loading cannot be guaranteed.
Yes. Custom headers are sent verbatim without validation or transformation.
No. Cross-origin headers are disabled by default and must be explicitly enabled.
No. Astro HTTP operates entirely at build and middleware level.
Astro HTTP supports Astro v4 and v5.
Yes. Astro HTTP is released under the MIT license.
Want to try it yourself? Astro HTTP plugin or Astro Security plugin or Astro Canonical plugin
Ready to take full control of your HTTP headers?