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 MaxGucci · Jan 14, 2015 at 02:24 PM · crossdomain

crossdomain issue

I am not well in English, so excuse me..

Trying to run my game in browser, but without any luck. It constantly freezes. However, when I run game in Editor it is all ok!! I am try to see the webplayer log, and there are two versions of what happens.

1) I have server at http://localhost:50736. There is http://localhost:50736/crossdomain.xml. When I hosted my game.unity3d in some other host (for example http://game.com/game.html), in log I see the following:

Platform assembly: C:\Users\MaxG\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)

Determining crossdomain.xml location for request: http://localhost:50736/rpc

About to parse url: http://localhost:50736/rpc

Determining crossdomain.xml location for request: http://localhost:50736/rpc

About to parse url: http://localhost:50736/crossdomain.xml

About to parse url: http://localhost:50736/rpc

Determining crossdomain.xml location for request: http://localhost:50736/rpc

About to parse url: http://localhost:50736/rpc

Determining crossdomain.xml location for request: http://localhost:50736/rpc

About to parse url: http://localhost:50736/rpc

Determining crossdomain.xml location for request: http://localhost:50736/rpc

and so on.

2) When game.unity3d hosted at http://localhost:50736/game.html there no need to check crossdomain.xml. In log I see:

Platform assembly: C:\Users\MaxG\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)

and nothing more. But browser is freezed.

What is problem? I realy need help.

P.S. I use WWW for requests.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Noah Dyer · Jan 14, 2015 at 07:45 PM

While you may not see the need for a crossdomain.xml files, Unity disagrees with you ;) You definitely need to have a crossdomain.xml wherever unity checks for it based on your WWW url calls.

You might get some additional help if you install this if you haven't already: http://www.dreammakersgroup.com/products-2/unity3d-in-game-logs/

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 MaxGucci · Jan 15, 2015 at 01:20 AM 0
Share

This is from unity website: The "Unity webplayer expects a http served policy file named crossdomain.xml to be available on the domain you want to access with the WWW class, (although this is not needed if it is the same domain that is hosting the unity3d file)". I understand that it is not needed to have crossdomain.xml when game requests for the same host where .unity3d file is.

You might get some additional help if you install this if you haven't already: http://www.dreammakersgroup.com/products-2/unity3d-in-game-logs/

I didn't find button download there.. Which problems may cause situation when in Editor webgame run as it is necessary, but in browser all go wrong?
avatar image Noah Dyer · Jan 17, 2015 at 04:22 AM 0
Share

If you haven't already, turn on the ENABLE_CROSSDO$$anonymous$$AIN_LOGGING environment variable (per the debugging section of the unity webplayer security page). You may get some helpful information. I've found that even though the editor is supposedly simulating the webplayer security settings (but only when webplayer is selected as the build target), some things still work even though the log may output errors. ]

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Crossdomain.xml, same server but i get 'Rejected' error ... 2 Answers

How to prevent a Webplayer Game from being saved locally? 1 Answer

Player side settings for security and crossdomain in Unity 3.0 0 Answers

Uniweb(sockets) + Facebook 0 Answers

WWWForm/Communication issue despite having a valid crossdomain.xml 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