oktadev/okta-spring-boot-2-angular-5-example

Refused to execute script from '<url>' because its MIME type ('text/html') is not executable

Opened this issue · 4 comments

Hi Matt,
Thank you for great article I have the following error after pressing login button:

Refused to execute script from '' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
callback:1 Refused to execute script from 'http://localhost:4200/implicit/inline.bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

If I clone your project, I have just done this I don't see any errors , but may be some library causing this for me, there is the request going to Okta server, it is probably this request Mime Type is failing is there any mimetype settings?

If you've done the tutorial, and you're seeing this issue, maybe you missed a step or versions don't match? You can use a tool like SmartSynchronize to compare the source from this example with yours. Beyond Compare works well too (if you're on Windows).

I copied content of your package.json to mine so there is no version mismatch but I will give it a try thank you, I am on Linux will try with Intellij plugin. Thank you for your time