blob: de75c9b31c59c15fa37e4c869983552c92a5284f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright: Hiroshi Ichikawa <http://gimite.net/en/>
// License: New BSD License
// Reference: http://dev.w3.org/html5/websockets/
// Reference: http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-76
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();
}
}
}
|