blob: 214f31eb4961183ed706c6c0472923aa5c1ce335 (
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-ietf-hybi-thewebsocketprotocol-07
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();
}
}
}
|