我正在使用ASP.NET MVC 5.我寫了一個小的過濾器屬性,用於將內容安全策略添加到響應標題。下面是代碼: public class ContentSecurityPolicyFilterAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext
由於違反CSP,我在Chrome應用程序中使用角度時遇到問題。我試圖哈希添加到內嵌標籤,但應用不承認CSP清單關鍵 There were warnings when trying to install this extension:
*Unrecognized manifest key 'Content-Security-Policy'.
的代碼,這使得一個問題是 <script>Syste
我不斷收到此錯誤: Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self' data: gap: http://www.visitsingapore.com https://ssl.gstatic.com 'un