Refused to execute script from because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled

后端 未结 7 1174
误落风尘
误落风尘 2020-12-17 16:25

I am trying to setup react routing which works when I click on something on my site the route works, however if I open a new tab and copy that url. I get

Ref         


        
7条回答
  •  被撕碎了的回忆
    2020-12-17 16:40

    I recently had to add the following to the headers as part of a security audit resolution

    X-Content-Type-Options: nosniff
    

    After that i started getting these errors. I am yet to figure out a permanent solution for this. The pages seems to be working though. The noise in the console is just annoying!

提交回复
热议问题