tweetcast/client/lib/gimite-web-socket-js-55ae639/flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as
changeset 306 70c9688a1486
parent 305 436a31d11f1d
parent 291 db1e6bfaa54e
child 307 6872c6aac6d6
equal deleted inserted replaced
305:436a31d11f1d 306:70c9688a1486
     1 // Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
       
     2 // License: New BSD License
       
     3 
       
     4 package net.gimite.websocket {
       
     5 
       
     6 import flash.system.Security;
       
     7 
       
     8 public 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 }