Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DavidDebnar · Oct 30, 2013 at 11:52 PM · webplayermysqlcrossdomaincrossdomain.xmlcrossdomain policy

Crossdomain policy problem.

Hi! I've been trying to fix this all day, but without any luck. I setup a MySQL database hosting at 000webhost, it works fine, I can add stuff, retrieve information. Well, it works except in an online hosted webplayer on dropbox. When I run the webplayer locally, it's fine, but when I play it online (public link), it stops working. Weirdest thing is, I can even access the file manually. The domain is:

 http://domainname.freeiz.com/

when I open a web browser and go to, it loads fine.

 http://domainname.freeiz.com/crossdomain.xml

But when the webplayer tries to access it, it fails, with 3 errors:

 - Error reading crossdomain policy: Invalid attr value
 - Rejected because no crossdomain.xml policy file was found
 - SecurityException: No valid crossdomain policy available to allow access

It's odd, because the first error basically contradicts the second one, because it clearly found a crossdomain.xml file, just couldn't read it properly.

Anyways, is anyone else experiencing the same problem? Has anyone fixed it already?

Thanks, David

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dracorat · Oct 30, 2013 at 11:56 PM 2
Share

$$anonymous$$ake sure the file matches the standards defined here: http://www.adobe.com/devnet/adobe-media-server/articles/cross-domain-xml-for-strea$$anonymous$$g.html

avatar image DavidDebnar · Oct 31, 2013 at 12:01 AM 0
Share

Thanks for commenting. I've read the above link, even tried their least retrictive policy, but without any luck.

avatar image Dracorat · Oct 31, 2013 at 12:04 AM 1
Share

Well the URLs you supplied aren't valid URLs so I can't check. But it's clearly saying something's wrong with the file.

Running locally runs at a higher permissions elevation level than running from the Web. That's probably why local is fine.

avatar image Dracorat · Oct 31, 2013 at 12:13 AM 1
Share

Yeah the file there is clearly good.

The next step should be to use WireShark and double check every end point and every returned payload.

avatar image rutter · Oct 31, 2013 at 12:32 AM 0
Share

From the Unity manual:

The Unity webplayer does not support the <allow-http-request-headers-from domain> and <site-control permitted-cross-domain-policies> tags. Note that crossdomain.xml should be an ASCII file.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by DavidDebnar · Oct 31, 2013 at 12:28 AM

Alright, I've finally managed to find and fix the issue. The problem was, that because I am hosting the webplayer on Dropbox, it defaults to https:// instead of http://. Then, when Unity tried to connect to the database server, it failed, because the protocols didn't match. Anyways, the fix was to use https://domain.com/ in my script.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dracorat · Oct 31, 2013 at 01:03 AM 0
Share

Good to know. Thanks!

avatar image kamgru123 · May 23, 2014 at 04:56 PM 0
Share

this was exactly my problem too

avatar image
0

Answer by IanSantos · Aug 10, 2017 at 07:54 PM

I'm having this problem right now. I don't know how to access the crossdomain.xml that I put in the public_html of 000webhost. My project in unity can access the database of localhost and php files but when I used this 000webhost, can't save data to online database. what solution should I do?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

crossdomain.xml on Server Requiring Basic Authorization 0 Answers

SocketPolicyClient error w/ Mac Webplayer 1 Answer

Yet another case of Unity Web Player Crossdomain.xml troubles 5 Answers

Webplayer Emulation when doing Dev Builds? 0 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges