question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refused to execute script

See original GitHub issue

I just added this to my site but when I visit it this error gets logged: Refused to execute script from 'https://alexanderkonietzko-84q9dz1ke-alex289.vercel.app/va/script.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Does this happen because I have X-Content-Type-Options: nosniff enabled?

Here is my repo for more information

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghoshnirmalyacommented, Nov 10, 2022
1reaction
alex289commented, Nov 4, 2022

I did not check if it was resolved after this but if it is I can say it’s resolved for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Refused to execute script, strict MIME type checking is enabled?
But the script.js is located in the nested folder as in: js/myStaticApp/script.js refused to execute script, meme type checking is enabled.
Read more >
How to fix Refused to Execute Script Error - its MIME type ('text ...
Fix is very simple. We just have to add below statement to disqus.php file. File is under /plugins/disqus-core folder. ... Just add above...
Read more >
Error "Refused to execute script from '' because its MIME type ...
"Refused to execute script from '<URL>' because its MIME type ('') is not executable, and strict MIME type checking is enabled." Environment.
Read more >
Refused to execute script from 'https://ourmain.js' because its ...
Refused to execute script from 'https://ourmain.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is ...
Read more >
Refused to execute script from because its MIME type ('text ...
Hello, I'm having a problem with deploying on aws elasticbeanstalk. On localhost it runs normally but when deploy to eb I got this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found