segment-boneyard/nightmare

Bypass CSP (Content Security Policy)

Open

#889 创建于 2016年11月15日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (19,507 star) (1,076 fork)batch import
Help Wanted

描述

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!

贡献者指南