Skyleen77 / next-nprogress-bar

NProgress integration on Next.js compatible with /app and /pages folders
https://next-nprogress-bar.vercel.app
315 stars 24 forks source link

Allow passing a content security policy nonce to the style #48

Closed osdiab closed 6 months ago

osdiab commented 6 months ago

To harden an app's content security policy, one may need to pass a nonce to the <style> tag to whitelist that inline style for strict CSP policies; this app just hardcodes a <style> tag with no nonce so it doesn't allow providing one. Would be great if that weren't the case!