title: Serving lesscss stylesheets
body: <p>I am trying to link to a LESS stylesheet with Django.  The file is stored in my static folder and all of the javascript and css files are served without a problem. </p>
  
  <p>When I use a <strong><em>'.less' extension</em></strong> on my file, I get the following error: </p>
  
  <pre><code>XMLHttpRequest cannot load...
  Origin null is not allowed by Access-Control-Allow-Origin.
  </code></pre>
  
  <p>When I visit the page directly, <strong><em>a download prompt pops up</em></strong> for the file.</p>
  
  <p>When I take the extension off completely, I get a black screen in my web browser and can't bring up the console in Chrome.</p>
  
  <p>When I use the '.txt' extension I can view the page fine, but still get the same error above when I try to link to it.</p>
  
  <pre><code>&lt;link rel="stylesheet/less" type="text/css" href="static/CSS/BaseLess.txt"&gt;
  &lt;script src="/Plugins/less-1.3.0.js" type="static/text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Any ideas how I can solve this?  Let me know if you want to see more Less code or error message.</p>
  
  <p><strong>Edit</strong>
  I was actually serving my less files from a different server and <a href="https://stackoverflow.com/questions/2235929/network-error-xmlhttprequest-exception-101">You cannot access data from another server with an XMLHttpRequest</a>.</p>
  
  <p>I switched the file over to the same server and it worked fine with the less extension.</p>