/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. package net.gimite.websocket {
  4. import flash.system.Security;
  5. public class WebSocketMainInsecure extends WebSocketMain {
  6. public function WebSocketMainInsecure() {
  7. Security.allowDomain("*");
  8. // Also allows HTTP -> HTTPS call. Since we have already allowed arbitrary domains, allowing
  9. // HTTP -> HTTPS would not be more dangerous.
  10. Security.allowInsecureDomain("*");
  11. super();
  12. }
  13. }
  14. }