electron
electron copied to clipboard
Blob url ignores CSP
Describe the bug When accessing a resource via blob protocol, capacitor-electron gets ignored on the CSP.
To Reproduce Steps to reproduce the behavior:
- Try to access a blob resource with blob:capacitor-electron://-/
Expected behavior No CSP errors since it's comming from the same application's schema
Screenshots
Desktop (please complete the following information):
- OS: [Windows 10]
Additional context Ionic Capacitor app with React. Trying to import https://www.npmjs.com/package/react-media-recorder
I think you need to explicitly enable "blob:" protocol in 'Content-Security-Policy' string in setup.ts