refused to execute script from 'http://localhost:8008/products/runtime.js' because its mime type ('text/html') is not executable, and strict mime type checking is enabled. #1997
Unanswered
weitingweiting
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"vue-router":"^4.1.5", "webpack":"^5.74.0"
When I configured the page using the 'path parameter (path: '/products/:typeId')' of the vue-router. When jumping to that page, everything works fine. But, when the current page is refreshed again. It will report error: refused to execute script from 'http://localhost:8008/products/runtime.js' because its mime type ('text/html') is not executable, and strict mime type checking is enabled.
If I use 'query string (?typeId=123)', it is correct no matter how many times it refreshes!
Anyone else having the same problem as me?
Translated with www.DeepL.com/Translator (free version)
Beta Was this translation helpful? Give feedback.
All reactions