I am trying to access files in Amazon S3 bucket with SSL with ActionScript3.
When I use this format...
https://s3.amazonaws.com/bucket.name/filename
I get security sandbox error. "Error #2048: Security sandbox violation: "
When I switch to this format...
https://bucket.name.s3.amazonaws.com/filename
It works like a charm (until I try it on a browser other than Firefox). It generates a certificate error (host name mismatch) for the other browsers. Once I add exceptions it works fine. But that's not practical.
Third option which would be the ideal version...
https://www.myowndomain.com/filename
... generates the same security violation for all browsers. Needless to say, the domain is mapped to the bucket.
The bucket has its own crossdomain.xml.
The files are custom binary files.
<cross-domain-policy>
<allow-access-from domain="*" secure="false"/>
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>
I went thru the security white paper and new rules for Flash Player 10. No luck so far.
Any ideas?
Ok it gets more interesting, and I suspect this is causing the problem. While sanitizing the name of my bucket, I oversimplified. My bucket name has a dot in it and appearently it is not a good thing.
http://faindu.wordpress.com/2008/12/18/amazon-s3-flash-crossdomainxml-ie7-certifacte-error/
So I would appreciate it, if there is an alternative to that.