Help Wanted
倉庫指標
- 星標
- (19,507 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
I am trying to bypass CSP in order to run some eval() code or spawn web workers.
I found this issue on electron: https://github.com/electron/electron/issues/3430
which suggests using webFrame.registerURLSchemeAsBypassingCSP(scheme)
http://electron.atom.io/docs/api/web-frame/#webframeregisterurlschemeasbypassingcspscheme
I have tried to do that in a preloader script but it doesn't seem to affect the page's policy.
Have you ever faced this or have any clue what might be wrong or a possible solution?
Thanks!