title: dojotoolkit: XMLHttpRequest cannot load file
body: <p>i am encountering a problem while developing a piece of software with the dojotoolkit (The version i have to use is 1.8.1 revision 29801).
  Here a little bit background. The Software is a C#.Net application in which a webbrowser control displays some webpages which are located on a users filesystem respectively a file server. 
  I debugged the software until now with netbeans which simulates a webserver.
  Now i tried to open it just with my Application which ended up with the very unpleasing result that it didn't worked. I tried to open it with Chrome and the Internet explorer and received the same result.
  i delimited the problem to one line.</p>
  
  <pre><code>&lt;script type="text/javascript" src="dojotoolkit20/dojo/dojo.js" data-dojo-config="parseOnLoad: true, useXDomain: true"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>i thought the useXDomain would be sufficient but it seems that i am mistaken in this regard.</p>
  
  <p>in the whole my html file looks now like this:</p>
  
  <pre><code>&lt;html lang="de"&gt;
      &lt;head&gt;
          &lt;title&gt;DojoTest&lt;/title&gt;
          &lt;script type="text/javascript" src="dojotoolkit20/dojo/dojo.js" data-dojo-config="parseOnLoad: true, useXDomain: true"&gt;&lt;/script&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The internet explorer shows me that the error is in the dojo.js</p>
  
  <pre><code>    req.getText = function(url, async, onLoad){
          var xhr = getXhr();
          xhr.open('GET', fixupUrl(url), false); //Here it says Access denied(url: "dojotoolkit20/dojo/parser.js")
  </code></pre>
  
  <p>Google Chrome reports:</p>
  
  <pre><code>XMLHttpRequest cannot load file:///E:/HTML/public_html/dojotoolkit20/dojo/parser.js. Cross origin requests are only supported for HTTP. /E:/HTML/public_html/index.html:1
  Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///E:/HTML/public_html/dojotoolkit20/dojo/parser.js'. 
  </code></pre>
  
  <p>Is there any way how i can accomplish the loading of the file ? installing a webserver is not an option for my users ;)
  Thanks in advance.</p>