轉移這是我的html:資源解釋爲樣式表,但使用MIME類型text/html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv = "Content-Language" content = "en"/>
<meta http-equiv = "Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/xxx/app/www/style.css">
現在,當我加載頁面,Safari的督察給我:
資源解釋爲樣式表,但使用MIME類型text/html傳輸
我正在使用MAMP在localhost上工作。我不確定需要修改才能使其工作。我讀到這可能是某種服務器問題。
我該如何解決?
類似的問題(如果不是確切的一個) - > http://stackoverflow.com/questions/3467404/chrome-says-resource-interpreted-as-script-but-transferred-with-mime-type-text – rt2800
檢查此答案http://stackoverflow.com/a/37024887/4762396 –