Allow prerender routes to presist headers
Open
@pi0 is already working on this.
Since Jan 26, 2024.
discussion
enhancement
prerender
v2
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 899
- Avg merge
- 2d 24m
- Merged PRs (30d)
- 40
Description
This requirement was discovered from https://github.com/Baroshem/nuxt-security/issues/335 > https://github.com/Baroshem/nuxt-security/blob/main/src/runtime/nitro/plugins/05-cspSsgPresets.ts
This module particularly requires to presist CSP headers (using route rules was initial workaround but hacky) so that when site is pre-rendered, they still work.
Main thing to discuss is when we do it:
- Behind an experimental flag and eventually always all headers
- Using a new
X-add-*convention - Using a global option
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.