PageRenderTime 9ms CodeModel.GetById 6ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
 2// License: New BSD License
 3
 4package net.gimite.websocket {
 5
 6import flash.system.Security;
 7
 8public class WebSocketMainInsecure extends WebSocketMain {
 9
10  public function WebSocketMainInsecure() {
11    Security.allowDomain("*");
12    // Also allows HTTP -> HTTPS call. Since we have already allowed arbitrary domains, allowing
13    // HTTP -> HTTPS would not be more dangerous.
14    Security.allowInsecureDomain("*");
15    super();
16  }
17  
18}
19
20}