Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7726129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:08:14+00:00 2026-06-01T05:08:14+00:00

I am trying to link to a LESS stylesheet with Django. The file is

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:08:16+00:00Added an answer on June 1, 2026 at 5:08 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to embed multiple .less files like this <head> <link href=mine.less media=screen rel=stylesheet/less
I am trying to link to a file that has the '#' character in
I'm trying to link with the static libc.a and a dynamic lib .so unsuccessfully.
I am using conditional comments to link to a css file (let's call it
I am trying to use LESS CSS to write my CSS. I have imported
I was trying to use a class with psuedo class in the less css
I am trying to have jQuery append a Wide.css stylesheet to the page whenever
I'm trying to learn how to display all the images stored on an android
I am trying to create a web page using CSS (Table less) but my
When trying to link some well established tools to my company's active directory, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.