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.
When I use a '.less' extension on my file, I get the following error:
XMLHttpRequest cannot load...
Origin null is not allowed by Access-Control-Allow-Origin.
When I visit the page directly, a download prompt pops up for the file.
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.
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.
<link rel="stylesheet/less" type="text/css" href="static/CSS/BaseLess.txt">
<script src="/Plugins/less-1.3.0.js" type="static/text/javascript"></script>
Any ideas how I can solve this? Let me know if you want to see more Less code or error message.
Edit I was actually serving my less files from a different server and You cannot access data from another server with an XMLHttpRequest.
I switched the file over to the same server and it worked fine with the less extension.