nitrojs / nitrojs/nitro

Allow prerender routes to presist headers

Open
#2,119 1 comment 3 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.