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 sebb · May 07, 2012 at 11:28 AM · webplayerwwwaccessfoldercrossdomain

accessing sub directory perhaps an crossdomain error

Hi everybody, I'm facing a weird problem: I'm using the WWW class to access our server for downloading content. Everything works fine if I'm accessing the root under "http://www.mydomain.com/" . But if I'm accessing a subdirectory under "http://www.mydomain.com/subfolderXyz/" I'll get an error saying "Failed downloading http://www.mydomain.com/subfolderXyz/".

If I call the url from a browser everything is fine.

I'm buiding a WebPlayer.

Anyone has a solution??

Thanks, Sebastian

Comment
Add comment · Show 2
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 sebb · May 07, 2012 at 01:45 PM 0
Share

Our crossdomain.xml looks like this:

 <?xml version="1.0"?>
 <!DOCTYPE cross-domain-policy SYSTE$$anonymous$$ "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
 <cross-domain-policy>
     <site-control permitted-cross-domain-policies="master-only" />
     <allow-access-from domain="*" />
 </cross-domain-policy>
avatar image Bunny83 · May 07, 2012 at 01:48 PM 0
Share

To quote the Security Sandbox page:

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.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · May 07, 2012 at 11:31 AM

Do you run your webbuild from the server or locally? If you run it locally, does your server have a crossdomain policy? Usually you should get an error that tells you there is no crossdomain. Are you sure your URL is correct? Most webservers are case sensitive!

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 sebb · May 07, 2012 at 12:04 PM 0
Share
  1. I run the webbuild locally.

  2. The server has the crossdomain policy.

  3. The url is correct.

  4. I reside behind a proxy. Using WireShark I realized that I'm reveiving the crossdomain.xml but that's it. Nothing is happening afterwards.

Our crossdomain.xml looks like this:

 <?xml version="1.0"?>
 <!DOCTYPE cross-domain-policy SYSTE$$anonymous$$ "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
 <cross-domain-policy>
     <site-control permitted-cross-domain-policies="master-only" />
     <allow-access-from domain="*" />
 </cross-domain-policy>
avatar image Bunny83 · May 07, 2012 at 01:50 PM 0
Share

You should check the logfile for errors.

Btw. great to see some people that try some things before asking questions ;)

So if wireshark doesn't see the actual request i'm pretty sure the crossdomain-check failed. Hopefully the logfile has some useful information ;)

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

WebGL WWW and Localhost CORS 0 Answers

Error with Facebook's crossdomain file? 0 Answers

Web player file access 1 Answer

Unity Web Player Load Object Error crossdomain.xml 1 Answer

Using WWW class locally (webplayer) 1 Answer


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