webframe: api to register scheme as privileged

This commit is contained in:
Robo 2015-09-21 22:59:59 +05:30
parent 01a3bf5881
commit 325feca864
3 changed files with 21 additions and 1 deletions

View file

@ -83,4 +83,11 @@ attackers.
Resources will be loaded from this `scheme` regardless of the current page's
Content Security Policy.
### `webFrame.registerUrlSchemeAsPrivileged(scheme)`
* `scheme` String
Registers the `scheme` as secure, bypasses content security policy for resources and
allows registering ServiceWorker.
[spellchecker]: https://github.com/atom/node-spellchecker