webFrame: api to make scheme bypass CSP

This commit is contained in:
Robo 2015-07-29 16:50:50 +05:30
parent 2ab079dc7d
commit 92ea533aee
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