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

CSP Error #546

Open
ValeryVS opened this issue Aug 6, 2018 · 4 comments
Open

CSP Error #546

ValeryVS opened this issue Aug 6, 2018 · 4 comments
Projects

Comments

@ValeryVS
Copy link

ValeryVS commented Aug 6, 2018

OS X
Firefox

With redux devtools enabled, I have CSP error in Firefox. Chrome extension works.

Content Security Policy: Параметры страницы заблокировали загрузку ресурса self («script-src»). Source: !function(t){function _webpack_require....

https://market.yandex.ru/

@ValeryVS
Copy link
Author

ValeryVS commented Aug 6, 2018

Probably related
#411

@zalmoxisus
Copy link
Owner

zalmoxisus commented Nov 17, 2018

@zalmoxisus zalmoxisus added this to To do in 2.16 Nov 17, 2018
@zalmoxisus
Copy link
Owner

I looked through the workarounds in the issues above, none suits our usecase. We cannot include clients scripts in the extension like ublock does, and providing a sha-code to be added on the client side would be the same as including the script from npm.

However, I see we still can inject the script from devpanel. The problem is that we need it to be done before the page is loaded, so we'll need to reload the page (probably adding a button for this case):

chrome.devtools.inspectedWindow.reload({ injectedScript: 'our page script here' })

This should go with our new pooling method planned for 3.0.

@zalmoxisus zalmoxisus removed this from To do in 2.16 Nov 25, 2018
@zalmoxisus zalmoxisus added this to Waiting in 3.0 Nov 25, 2018
@zanona
Copy link

zanona commented Nov 25, 2020

Hey @zalmoxisus, may I ask if there's any possible solution to get rid of that error in the logs as of today?
It's a shame Firefox display CSP issues from extensions as it can get in the way of development sometimes.
Thanks in advance.

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

No branches or pull requests

3 participants