본문 바로가기

카테고리 없음

[Javascript] - Refused to execute script from 'http://XXX' because its MIME type ('application/octet-stream') is not executable, and strict MIME type checking is enabled. 에러 해결법

script파일을 불러 올 때, 불러오는 파일의 타입을 명시해줘야 해당 에러가 발생하지 않는다.

https://5coding.tistory.com/50

 

Javascript - Refused to execute script from 'http://XXX' because its MIME type ('application/octet-stream') is not executable, a

script 파일을 불러 오려고 하는데 MIME type checking is enabled. 라고 뜨면서 에러가 났다. 불러 오려는 파일 타입 Content-Type을 명시 해줘야 에러가 나지 않는다. 내 경우에는 타입을 type="application/octet-str

5coding.tistory.com

<script type="text/javascript" src="경로"></script>