]> khamidou — GitHub mirrors - electron.git/commitdiff
:memo: `allow-running-insecure-content` and
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 29 Jul 2015 08:15:16 +0000 (16:15 +0800)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 29 Jul 2015 08:17:14 +0000 (16:17 +0800)
`allow-displaying-insecure-content`.

docs/api/browser-window.md

index cee68183f78305fd55fa199816227e0882eb9322..b6f25446076364c52a36cd47334b9ad27d8b20d4 100644 (file)
@@ -76,7 +76,15 @@ You can also create a window without chrome by using
     textured window. Defaults to `true`.
   * `web-preferences` Object - Settings of web page's features
     * `javascript` Boolean
-    * `web-security` Boolean
+    * `web-security` Boolean - When setting `false`, it will disable the same-origin
+      policy(Ususally using testing websites by people) and set `allow_displaying_insecure_content`
+      and `allow_running_insecure_content` to `true`.
+    * `allow-displaying-insecure-content` Boolean - Allow a https page to display
+      content like image from http URLs. This option will be overrided to `true`
+      when `web-security` option is set.
+    * `allow-running-insecure-content` Boolean - Allow a https page to run JavaScript,
+      CSS or plugins from http URLs. This option will be overrided to `true` when
+      `web-security` option is set.
     * `images` Boolean
     * `java` Boolean
     * `text-areas-are-resizable` Boolean