flash 10, cross-domain, http to https problems finally solved!
So it’s been a long time since i’ve blogged…
And today’s frustrations with cross-domain policies and SSL have made me want to blog about it, in the slim case that someone who’s having the same problem actually
will see this and know exactly what to do without wasting time…
The problem:
Internet Explorer wouldn’t load my data in a flash movie…
My website is on a http connection…
http://www.test.com
trying to post to a secure external website
https://www.test2.com
test2.com has a crossdomain.xml file with these contents..
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
in Firefox and Chrome it worked great
but the problem wasn’t in my cross domain file… it was in my HTTP Headers…
I had to add this PHP code to the service that was being called to prevent it from telling Internet Explorer to not-cache it…
<?php
header('Cache-Control: cache, must-revalidate');
header('Pragma: public');
?>
I hope this helps someone!







