Resource blocked due to MIME type mismatch (X-Content-Type-Options: nosniff)

后端 未结 14 1035
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 11:53

I am developing a web page using JavaScript and HTML, everything was working good when I have received this list of errors from my HTML page:



        
14条回答
  •  天涯浪人
    2020-12-13 12:37

    Are you using express?

    Check your path(note the "/" after /public/):

    app.use(express.static(__dirname + "/public/"));
    

    //note: you do not need the "/" before "css" because its already included above:

    rel="stylesheet" href="css/style.css
    

    Hope this helps

提交回复
热议问题