tweetcast/client/lib/websocket-js/flash-src/src/net/gimite/websocket/WebSocketMainInsecure.as
equal
deleted
inserted
replaced
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 } |
|