NextJS build ignoring headers set in netlify.toml

Some further points for this…

  1. Land on app homepage - https://quirky-ritchie-40c445.netlify.app/ : no CSP or headers
  2. Navigate to a link on the page - https://quirky-ritchie-40c445.netlify.app/funds/punk-basic/ - no request so still no headers on the page.
  3. Refresh the https://quirky-ritchie-40c445.netlify.app/funds/punk-basic/ page, CSP and other headers are now set/enabled.

So landing on any pages that are not the main app page, or viewing any files, will serve the asset with the right headers applied.

The main app page, or any content navigated to via that page do not send the right headers.

1 Like