You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A middleware to define a strict Content Security Policy (CSP). It will ensure to include hashes of scripts for static routes (`getStaticProps` - Hash-based strict CSP)
79
-
* or a nonce for dynamic routes (`getServerSideProps` - Nonce-based strict CSP).
80
-
*
81
78
* @see https://web.dev/strict-csp/
82
-
*
83
-
* @param cfg A configuration object for strict CSP
84
-
*
79
+
*
80
+
* @param cfg A configuration object for a strict Content Security Policy (CSP)
81
+
*
82
+
* @returns
83
+
* a middleware that provides a strict CSP. It will ensure to include hashes of scripts for static routes (`getStaticProps` - Hash-based strict CSP)
84
+
* or a nonce for dynamic routes (`getServerSideProps` - Nonce-based strict CSP).
85
+
*
85
86
* Must be used together with custom `next/document` component drop-ins
0 commit comments