Flash Socket Cross Domain Security Issue

后端 未结 2 1012
终归单人心
终归单人心 2021-01-29 03:37

I made my flash FTP transfer using socket , but when putting it in HTML file i am getting cross domain error, i have tried with various possibilities but failed. Please help me

相关标签:
2条回答
  • 2021-01-29 03:39

    Socket policy files are served differently than crossdomain policy files for HTTP requests. You need a socket policy server, not just a socket policy file placed on an HTTP server. See http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html

    0 讨论(0)
  • 2021-01-29 03:43

    To validate a server policty with flash for a socket server, remove the file name: Security.loadPolicyFile('xmlsocket://ipaddress:port');

    It assume that your server listen to the given port and will return the security policy. However the port you given (80) is the http port, so it may not be valid (used for the http requests)

    0 讨论(0)
提交回复
热议问题