CSP
Hey everyone,
I'm currently working on a React app using Vite, and I'm trying to implement a CSP policy with script-src 'strict-dynamic'. I know that to make this work, I need to add a nonce or a hash for the scripts, especially for index.jsx.
Has anyone here successfully implemented this?
Would appreciate any guidance or examples on generating and adding the nonce/hash dynamically to make it CSP-compliant with Vite.
Thanks in advance!
0 Replies