Configure Content Security Policy for Para SDK in Next.js and Vite applications
'blob:'
directive in worker-src
is critical for Para SDK to function properly. It allows the SDK to create and execute web workers from blob URLs.next.config.js
:
vite-plugin-csp
plugin:
index.html
:
'unsafe-eval'
to script-src
for hot module replacement. Ensure this is removed in production builds.