Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

568
Views
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking i

while building a debug toolbar in Django I am getting an error in file toolbar.js ie. s.map: HTTP error: status code 404, net:: ERR_UNKNOWN_URL_SCHEME toolbar.js:1 Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

can anyone tell me the possible fix for that?

over 4 years ago · Santiago Trujillo
4 answers
Answer question

0

I found solution here How to set content type of JavaScript files in Django

#settings.py
if DEBUG:
    import mimetypes
    mimetypes.add_type("application/javascript", ".js", True)
over 4 years ago · Santiago Trujillo Report

0

Expanding on drewslee answer

The solution to the problem is indicated in the documentation

  • For Windows, you need to edit the registry. Set HKEY_CLASSES_ROOT\.js\Content Type to text/javascript.
over 4 years ago · Santiago Trujillo Report

0

I have faced the problem and it was fixed after edit the Windows registry. I just Set HKEY_CLASSES_ROOT.js\Content Type from text/plain to text/javascript.

Now the problem is solved!

over 4 years ago · Santiago Trujillo Report

0

I faced the same error. It was resolved once I updated the HKEY_CLASSES_ROOT.js\Content Type from text/plain to text/javascript in my Windows using RegistryEditor.

After that I had to refresh my browser cache to be able to see the toolbar

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!