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

后端 未结 14 1003
伪装坚强ぢ
伪装坚强ぢ 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:13

    It might be a wrong path. Ensure in your main app file you have:

    app.use(express.static(path.join(__dirname,"public")));
    

    Example link to your css as:

    
    

    similar for link to js files:

    
    

提交回复
热议问题