Merge pull request #2375 from deepak1556/web_frame_api_patch

webFrame: api to make scheme bypass CSP
This commit is contained in:
Cheng Zhao 2015-08-03 14:46:40 +08:00
commit 7c75329b18
3 changed files with 27 additions and 27 deletions

View file

@ -57,10 +57,17 @@ require('web-frame').setSpellCheckProvider("en-US", true, {
* `scheme` String
Sets the `scheme` as secure scheme.
Registers the `scheme` as secure scheme.
Secure schemes do not trigger mixed content warnings. For example, `https` and
`data` are secure schemes because they cannot be corrupted by active network
attackers.
## webFrame.registerUrlSchemeAsBypassingCsp(scheme)
* `scheme` String
Resources will be loaded from this `scheme` regardless of
page's Content Security Policy.
[spellchecker]: https://github.com/atom/node-spellchecker