- Home /
crossdomain.xml error when hosted on https but requesting http
Hi I get the dreaded crossdomain.xml not found error when my app is hosted on https domain. The app makes http request to my REST server. It works fine when the app is hosted on http. Even on https - the request hits my server and the server responds - but Unity Web player complains that the crossdomain.xml is not found.
Is this scenario even supported by Unity? Their documentation doesn't say anything specific regarding https.
I just met the same condition. I checked my xml so many times. But it keeps saying crossdomain.xml is not found. $$anonymous$$y xml is hosted on https server too.
Answer by Dimetrock · May 28, 2014 at 07:41 AM
I had the same issue. The fix is rather simple.
Each tag has the optional secure attribute. The secure attribute defaults to true. You can set the attribute to false if your policy file is on an HTTPS server, and you want to allow accessing files via HTTP or HTTPS. Setting the secure attribute to false could compromise the security offered by HTTPS.
Example: allow-access-from domain="*" secure="false"/