CSP integration is skipped due to missing build context

While the CSP integration is deprecated, it is supposed to still work. However, about 3 weeks ago, it started being skipped in the build, claiming a missing build context in the logs:

3:04:31 PM: ❯ Loading integrations
3:04:31 PM:    - dynamic-csp
3:04:33 PM: Failed to fetch build context, skipping

Now this message is really unhelpful, as there is no documentation available about what the build context is, how to provide it so it can be fetched etc.

Can you give me any pointers how to fix this?

I encountered the same issue and resolved it by using @netlify/plugin-csp-nonce.

My configuration is in this gist.

I’m using this as a temporary solution and plan to implement the latest Netlify CSP integration once it’s released.