/flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as
http://github.com/gimite/web-socket-js · ActionScript · 20 lines · 10 code · 6 blank · 4 comment · 0 complexity · 46f75e68d0eea1db008828a89b565f20 MD5 · raw file
- // Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
- // License: New BSD License
- package net.gimite.websocket {
- import flash.system.Security;
- 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();
- }
-
- }
- }