Flex known security breach bug 2048, cross domain

I thought that the 2048 security violation must have happened when trying to access other domains.

I got:

"Security sandbox security breach: http://127.0.0.1/site_media/main.swf cannot load data from 127.0.0.1:80" isn this the same domain? What's the solution?

by doing

var loader:MultipartLoader = new MultipartLoader("http://127.0.0.1/create/");

      

Did I miss something?

0


source to share


3 answers


Although referred to as "crossdomain" policy files, the policy actually applies to a combination of both domain and port: localhost: 80 and localhost: 443 - this is not the same as FP security policy. I also don't think Flash Player itself accepts the default port 80, so "localhost" and "localhost: 80" are not considered the same.



+3


source


You can also try a relative url if Jon Romero's suggestion doesn't work:



var loader:MultipartLoader = new MultipartLoader("/create/");

      

+1


source


Try using localhost. If that doesn't work, just create a crossdomain.

0


source







All Articles