[오류] MIME type 에러

지미니👩‍💻·2024년 3월 25일
0
post-thumbnail

index.html:1 Refused to apply style from 'http://127.0.0.1:5502/frontend/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

번역:
'http://127.0.0.1:5502/frontend/style.css'의 MIME 유형('text/html')이 지원되는 stylesheet MIME 유형이 아니며 엄격한 MIME 검사가 활성화되어 있으므로 스타일 적용이 거부되었습니다.


기존 폴더 구조를 바꾸면서 생긴 에러 메시지라서
당연히 경로 문제 때문일 것이라고 생각을 했고
역시나 경로 문제였다.

변경 전
href="./style.css"
변경 후
href="./css/style.css"

로 재설정해주니 해결!

➖➖➖➖➖➖➖➖➖


Refused to execute script from 'http://127.0.0.1:5502/frontend/tinymce/js/tinymce/tinymce.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

번역:
'http://127.0.0.1:5502/frontend/tinymce/js/tinymce/tinymce.min.js'의 MIME 유형('text/html')이 실행 가능하지 않고 엄격한 MIME 유형 검사가 활성화되어 있기 때문에 스크립트 실행이 거부되었습니다.


이 에러 역시 경로문제,, 해결완료!
변경 전
 <script src="./tinymce/js/tinymce/tinymce.min.js"></script>
변경 후
 <script src="../tinymce/js/tinymce/tinymce.min.js"></script> 
profile
프론트엔드 _ 👊

0개의 댓글

관련 채용 정보