diff options
author | Hiroshi Ichikawa <gimite@gmail.com> | 2011-09-10 19:02:18 +0900 |
---|---|---|
committer | Hiroshi Ichikawa <gimite@gmail.com> | 2011-09-10 19:02:18 +0900 |
commit | 5c7df9d52083c5320a305a6f3b89ef4b08c89c16 (patch) | |
tree | 009ced487bc8a55ddc4b696e85253f156bd9caec /flash-src | |
parent | 66f79da193582bbd21507d80a2e5297de56668a3 (diff) | |
download | web-socket-js-5c7df9d52083c5320a305a6f3b89ef4b08c89c16.tar.gz |
Allowing HTTP -> HTTPS access on WebSocketMainInsecure.swf.hixie-76
Diffstat (limited to 'flash-src')
-rw-r--r-- | flash-src/build.xml | 2 | ||||
-rw-r--r-- | flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/flash-src/build.xml b/flash-src/build.xml index b9f9a70..178f719 100644 --- a/flash-src/build.xml +++ b/flash-src/build.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- - Ant build file which provides Yet another way (other than build.sh) to build SWF files. + Ant build file which provides yet another way (other than build.sh) to build SWF files. You need to copy build.properties.sample to build.properties and change FLEX_HOME for your environment. diff --git a/flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as b/flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as index e845839..de75c9b 100644 --- a/flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as +++ b/flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as @@ -11,6 +11,9 @@ public class WebSocketMainInsecure extends WebSocketMain { public function WebSocketMainInsecure() { Security.allowDomain("*"); + // Also allows HTTP -> HTTPS call. Since we have already allowed arbitrary domains, allowing + // HTTP -> HTTPS would not be more dangerous. + Security.allowInsecureDomain("*"); super(); } |