Add webFrame.registerUrlSchemeAsSecure API

This commit is contained in:
Cheng Zhao 2015-01-08 12:37:41 -08:00
parent 19d6d171b1
commit 2d5b17552a
2 changed files with 37 additions and 1 deletions

View file

@ -53,4 +53,14 @@ require('web-frame').setSpellCheckProvider("en-US", true, {
});
```
## webFrame.registerUrlSchemeAsSecure(scheme)
* `scheme` String
Sets 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.
[spellchecker]: https://github.com/atom/node-spellchecker