Multi-Page Applications (MPAs)
Examples of MPA frameworks include Nuxt, Remix, and others.
Current Status
The Bad News
The Vite Plugin CSP Guard package currently does not support Multi-Page Applications (MPAs). Unfortunately, this limitation is unlikely to change due to the inherent differences between how MPAs operate in Vite.
The Good News
For MPAs you will often run CSP on the server (e.g. per-request nonces). Use CSP Toolkit (opens in a new tab) for nonce generation, definePolicy, mergePolicies, and Node/edge helpers. The documentation on that site also includes framework-specific examples for popular stacks.