electron icon indicating copy to clipboard operation
electron copied to clipboard

Blob url ignores CSP

Open p-Jimenez opened this issue 1 year ago • 1 comments

Describe the bug When accessing a resource via blob protocol, capacitor-electron gets ignored on the CSP.

To Reproduce Steps to reproduce the behavior:

  1. 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 image

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

p-Jimenez avatar Oct 20 '22 09:10 p-Jimenez

I think you need to explicitly enable "blob:" protocol in 'Content-Security-Policy' string in setup.ts

JuliusSkrisa avatar Oct 31 '22 07:10 JuliusSkrisa