Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob url ignores CSP #215

Open
p-Jimenez opened this issue Oct 20, 2022 · 1 comment
Open

Blob url ignores CSP #215

p-Jimenez opened this issue Oct 20, 2022 · 1 comment

Comments

@p-Jimenez
Copy link

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

@JuliusSkrisa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants