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

前端 未结 4 1702
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 01:44

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:46

    If you want to workaround the issue, add the following in your application.conf file.

    play.filters.disabled += "play.filters.headers.SecurityHeadersFilter"
    

提交回复
热议问题