UNPKG

nuxt-security

Version:

🛡️ Security Module for Nuxt based on HTTP Headers and Middleware

11 lines (10 loc) 494 B
/** * This plugin adds the Content-Security-Policy header to the HTML meta tag in SSG mode. * * Runs in `render:response` so that it operates on the finalized HTML string, after * hashes have been computed (30-cspSsgHashes) and injected into the CSP directive * (50-updateCsp). This ensures the CSP meta tag reflects the final served HTML * regardless of the order of other `render:html` listeners. */ declare const _default: import("nitropack").NitroAppPlugin; export default _default;