Closed jtbandes closed 1 month ago
Hi, thanks for creating this plugin. I ran into a problem using it and loading a worker from a blob: url. I think this line is incorrect:
blob:
https://github.com/RockiRider/csp/blob/aa1ea7abb82e28afafbe0f7bfb1138a4031d0c82/packages/vite-plugin-csp-guard/src/policy/createPolicy.ts#L12
According to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#scheme-source blob: should not be surrounded in quotes.
Hi, thanks for creating this plugin. I ran into a problem using it and loading a worker from a
blob:
url. I think this line is incorrect:https://github.com/RockiRider/csp/blob/aa1ea7abb82e28afafbe0f7bfb1138a4031d0c82/packages/vite-plugin-csp-guard/src/policy/createPolicy.ts#L12
According to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#scheme-source
blob:
should not be surrounded in quotes.