I have created a flex application in the Python Gae sdk and I got the error 2048, so I put a crossdomain.xml under the static folder. The crossdomain.xml is following:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM “/xml/dtds/cross-domain-policy.dtd”>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
And, I add the following in the app.yaml:
- url: /crossdomain.xml
static_files: static/crossdomain.xml
upload: static/crossdomain.xml
However, I still got the error 2048. Therefore, I would like to know is anything I need to configure or miss in my case and how to fix the error.
Please advice. Thanks.
I haven't used crossdomain.xml with Flash, but I have with Unity3d. I've gotten it to work, and what you have looks correct.
Have you visited yoursite.com/crossdomain.xml to make sure it's visible in a browser?
If Flash is really picky you might need to specify a mimetype (text/xml or application/xml)
You also might want to check you crossdomain.xml in a validator to make sure you're not missing a /> or something like that.
Also, check out html5boilerplate's crossdomain.xml. Their least restrictive version should work on any site: