Sign in to follow this  

Unity Unity 4.5 Crossdomain.xml policy file not found

Recommended Posts

I spent days drowning in web looking for the answer.


I'm attempting simple server communication for OAuth 2.0 access token, Here is the portion I used for sending request (JavaScript)

var loginForm = new WWWForm();

		var headers = loginForm.headers;
		var rawdata =;
		var url = "";
		headers["Authorization"]= "Basic"+"eDJlcFpCNzRTOXFxMTdxT3Z2dzo1eVdBcVE1aVNm";
		var httpResponse = new WWW(url, rawdata,headers);
yield httpResponse; 

When I run the code I get the following error in the console.

Error: Rejected because no crossdomain.xml policy file was found
$:MoveNext() (at Assets/Scripts/StartMenu/LoginService.js:37)


I followed guide from the server side (attached), but I failed to see what I can do to resolve the issue.


An other person succeeded getting the token using Java using some other program.


I must be doing something very wrong, and I have not a single clue orz.

Share this post

Link to post
Share on other sites

If you want to access the remote server from your game you have to host cross domain.XML file with policy description on your server on 843 port if I remember correctly. Read this for reference


Thank you! I assumed the server had the xml just because some other person could do it with java.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Announcements

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Similar Content

    • By CpawsMusic
      Hey there! My name is Cpaws and I compose music, sound effects and overall sound design for video games and film. I'm looking to work on a horror game mainly for fun and as an addition to my portfolio. I've used Unity & Wwise before for audio implementation.
      If you're interested in working together, don't hesitate to contact me at
      Here's a few demo reels of my past projects: 
      Here's some snippets of some quick game music I've composed:
      Here's my portfolio/website:
    • By muhamad rabee
      My first mobile game made by unity



      I appreciate every suggestion
    • By Simplepg
    • By Simplepg
    • By ForgedInteractive

      Who We Are
      We are Forged Interactive, a small team of like-minded game developers with the sole purpose of making games we love! We're a team of artists, animators, programmers, level designers, writers, composers, producers, and other creative minds. We want to make games that you, the modern gamer want to play! We hope to build a community that enjoys our games as much as we love creating them. With your feedback and support we will be able to achieve that.

      About the Game
      GAME NAME is a fun, action-packed army builder with unique characters, challenges and engaging levels. Set forth on an adventure to protect friends, family and countrymen from new adversaries. Once defeated your enemies turn coat and join you in your adventures. Players can enjoy a range of troops and abilities based on their gameplay style which become more important as maps introduce more challenging terrain, enemies and bosses. Strong orc knights, dangerous shamans, and even a dragon are out on the prowl. Knowing when to fight and when to run, and how to manage your army is essential. Your actions alone decide the fate of this world.

      Previous Work by Team
      Although we are working towards our first game as a team, our team members themselves have past experience in the industry.
      This includes members who have worked on titles including:
      Final Fantasy Kingsglaive, FIFA, Xcom 2 and Civilization.

      Who are we looking for? 3D Modellers Concept Artists Marketing Specialists Level Designer

      What do we expect? Reference work or portfolio. Examples what have you already done and what projects you have worked on academic or otherwise. The ability to commit to the project on a regular basis. If you are going on a two-week trip, we don't mind, but it would be good if you could commit 10+ hours to the project each week. Willingness to work with a royalty based compensation model, you will be paid when the game launches. Openness to learning new tools and techniques
      What can we offer? Continuous support and availability from our side. You have the ability to give design input, and creative say in the development of the game. Shown in credits on websites, in-game and more. Insight and contacts from within the Industry.
      If you are interested in knowing more or joining. Please email or PM us on Skype. Myself or Colin will reply to you within 48 hours.

      Skype: ForgedInteractive

      David and Colin

      Follow us on:

      Twitter: @ForgedInteract
  • Popular Now