Skip to content

experimentalStaticHeaders not working on Vercel #13996

@wKovacs64

Description

@wKovacs64

Astro Info

Astro                    v5.10.0
Node                     v20.19.1
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  @astrojs/vercel
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

N/A

Describe the Bug

Enabling experimentalStaticHeaders in the @astrojs/vercel adapter (combined with enabling experimental CSP) does write the CSP to .vercel/output/config.json, but the CSP header doesn't actually get included in the document response.

Deployed URL of the minimal template with the documented config options:

https://github-2y2x5yu5-8i6au4xks-justin-halls-projects-df945a1f.vercel.app

What's the expected result?

The document response would include the CSP header.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-2y2x5yu5?file=astro.config.mjs

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)pkg: vercelRelated to Vercel adapter (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions