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
1
Question by roychr · Jul 21, 2010 at 11:46 PM · policy

crossdomain.xml policy file

Hi,

Just rolled onto the latest beta of unity3, I imagine this question will be raised at some point. I did not find help pertaining to this file.

1) What should the content be for general dev, not release (give us a non blocking example, we will figure out the release at some point).

2) I tried to use a sample one with the following information :

<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

I have put it in the root of my asset folder and in the root of my web site (where I get my bundles and web pages) but it does not work.

Thanks for your help in advance !

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 roychr · Jul 22, 2010 at 12:19 AM 0
Share

Just found it, look into the documentation for Security Sandbox on the webplayer 3.0, its right there !

avatar image qJake · Jul 22, 2010 at 08:25 AM 0
Share

When you solve your own problem, put it in an answer, and checkmark it so everyone else knows.

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Funky Swadling · Mar 02, 2011 at 05:56 PM

After much bashing my head into walls, it appears that the above text works ONLY IF SAVED AS A UTF-8 FORMATTED .XML FILE.

If you save it as a different character set, such as the one my (stupid) editor defaults to, it will not work.

I think that's likely why it works for some people, not for others, and no one can quite figure out why.

Comment
Add comment · Show 4 · 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 Gillissie · Mar 24, 2011 at 03:35 AM 0
Share

If this is true, then it must be a bug because Unity should recognize it even if it isn't UTF-8 encoded. Have you reported a bug?

avatar image jahroy · May 16, 2011 at 01:26 PM 0
Share

I think I may have just experienced the same thing. $$anonymous$$y crossdomain.xml was not working, so I logged in to the server, opened the file with vi, saved it, then it started to work. Thanks!

avatar image Waz · Jul 10, 2011 at 09:26 PM 0
Share

The above text is 7-bit ASCII, so 99% of encodings will be identical. So unless your text editor defaults to something like EBCDIC or a $$anonymous$$icrosoft Word document, it will not matter. Conceivably Unity could have a bug with line-endings, but that's not specified by encodings like UTF8.

avatar image kbolino · Mar 13, 2012 at 06:23 PM 0
Share

Notepad (among other text editors) by default saves UTF-8 encoded text by inserting the "Byte Order $$anonymous$$ark" (U+FEFF) before the beginning of the text. It is encoded as the byte sequence 0xEF 0xBB 0xBF. It is meant to be used with UTF-16 (and possibly UTF-32), which can be little-endian or big-endian encoded, but has no function in UTF-8. Notepad does this to identify UTF-8 documents, because that particular sequence of bytes at that particular position is unlikely to appear in most other encodings.

However, many X$$anonymous$$L parsers expect the first byte to be 0x3C (U+003C, "Less-than sign" in UTF-8), and they fail to parse the document if that is not the case. Possible solutions are to save the document as "ANSI" (in Notepad, as long as you don't use characters above 0x7F), "ASCII" (where available), or use a different text editor (especially if you need Unicode characters).

avatar image
1

Answer by josesenra · Nov 11, 2010 at 01:04 AM

Hi all... I simply put a crossdomain.xml file in my site's root with the excat same code from the example and it worked fine..

Thanks all ;)

Comment
Add comment · Show 1 · 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 Krishneel Prasad · May 20, 2011 at 06:09 PM 0
Share

is the crossdomain.xml file we are supposed to use a generic one? or do we have to specify it?

I know it sounds like a obvious question, but I'm having trouble

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

2 People are following this question.

avatar image avatar image

Related Questions

Unity 3.0 soft bodies 4 Answers

unity 3.0 beta 6 - fbx importer frames shift 1 Answer

unity3d 3.0 not support netframework 3.0? 4 Answers

Frame rates from unity3 iphone lower than unity iphone 1.5 0 Answers

Unity 3 Problem: Legacy Lightmap Shaders don't seem to work. 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