Permalink
Browse files

Allowing HTTP -> HTTPS access on WebSocketMainInsecure.swf.

  • Loading branch information...
gimite committed Sep 10, 2011
1 parent 66f79da commit 5c7df9d52083c5320a305a6f3b89ef4b08c89c16
View
Binary file not shown.
View
Binary file not shown.
View
@@ -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.
@@ -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();
}

0 comments on commit 5c7df9d

Please sign in to comment.