关于错误Resource interpreted as Script but transferred with MIME type text_html
生活随笔
收集整理的這篇文章主要介紹了
关于错误Resource interpreted as Script but transferred with MIME type text_html
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Created by Jerry Wang, last modified on Aug 03, 2014
某ui component里的javascript不work,通過Chrome F12 Console檢測到錯誤: Resource interpreted as Script but transferred with MIME type text/html:
出現錯誤的javascript file 的status為200,
但是response顯示content-length又為0.
直接在瀏覽器里輸入js url也無法訪問該文件:
https://ag3:44354/sap(bD1lbiZjPTAwMSZkPW1pbg==)/bc/bsp/sap/bspwd_cmp_test/jquery_1.7.1.js
因為mime repository里bspwd_cmp_test folder下并無對應的jquery文件。
通過debug尋找http 200response的設置位置:
因為查找不到對應的js 文件,返回Resource Not Found的error:
總結
以上是生活随笔為你收集整理的关于错误Resource interpreted as Script but transferred with MIME type text_html的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用工具快速找出custom work
- 下一篇: 抖音火山版怎么修改地址