Error #2044: Unhandled SecurityError:. Text=Error #2048: Security Sandbox Violation
I've recently created a flash blog application and locally it works perfectly. However when I upload it to my web server it throws this error at me.
'Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation'
I've searched around it people have been saying that it's to do with loading in files from servers that are external to the one the flash file is hosted one. But my flash file only loads two XML files, both of which are on my server, albeit in a different directory.
If anyone has any ideas I'd appreciate the help
View Replies !
View Related
Got Error 2048...
Works great in adobe flash
import flash.net.*;
Security.allowDomain("*");
function Show(n:String) {
votes.text = n;
}
function update(eventArgs:TimerEvent)
{
fh.load(r);
}
var r:URLRequest = new URLRequest("
View Replies !
View Related
Socket Security Error 2048
Hi,
I'm trying to make a socket connection using AS3. I am aware of the new Security policies. I've read all the articles and set up a socket policy file server and a socket server to handle the socket.connect().
Im calling Security.loadPolicyFile("xmlsocket://myhost.com:843") but continually get this message in the debugger:
Error: Failed to load policy file from xmlsocket://myhost.com:843 // why did it fail?? the file is there and port is open
and then:
Error: Request for resource at xmlsocket://myhost.com:11500 by requestor from http://myhost.com/myswf.swf has failed because the server cannot be reached. // why can't the server be reached?? the port is open
I've made sure I have no firewall blocking the port, no SELinux enabled policies, and I've verified port 843 and 11500 are actually open using a custom php script.
Also when I type nmap localhost port 843 shows up as open using tcp. It does however say that the service is unknown. I don't understand that since I have edited the /etc/services file and created the service "flashpolicy" in /etc/xinetd.d and restarted inetd using: /etc/rc.d/init.d/xinetd restart.
Heres the string my socket policy file server is suppose to return when it receives <policy-file-request/> :
<cross-domain-policy><site-control permitted-cross-domain-policies="master-only"/><allow-access-from domain="myhost.com" to-ports="11500" /></cross-domain-policy>