Refused to load the script because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'

后端 未结 4 673
梦毁少年i
梦毁少年i 2020-12-30 01:32

I am using MVC6 (asp.net 5) using angular and trying to load scripts from CDN locations when my code is running in release mode, but for some reason the scripts NEVER load.<

4条回答
  •  温柔的废话
    2020-12-30 02:29

    Put the following in the web page header section:

    
    

    More details about Content Security Policy you can read here and here.

提交回复
热议问题