기타/에러

[에러] because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

hrming 2024. 3. 16. 12:29

화면마다 공통으로 사용되는 기능을 분리하여 common.js 파일로 만들고, html에서 이 파일을 불러오게 처리했다. 

그런데, 그 과정에서 아래 에러를 만났는데, 단순 경로 설정 문제였다..!

 

because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.


참고 및 출처 : 

https://july7k.tistory.com/140

 

MIME type 에러 - 경로 설정 오류 해결

because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. js 파일 및 css 파일 등의 리소스 파일 사용시 접근을 못하는 에러. 원인 - 경로를 잘못 설정했을 경우 많이

july7k.tistory.com