Set Angular CSP

If you don't set this flag, Angular helpfully attempts to check if this is disabled by *triggering* a CSP violation just to see what happens... 🙈
This commit is contained in:
Matt-Yorkley
2021-12-24 20:26:24 +00:00
parent 114a9d8993
commit ce9b64a848
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
%html
%html{ "ng-csp": "no-unsafe-eval" }
%head
%meta{charset: 'utf-8'}/
%meta{name: 'viewport', content: "width=device-width,initial-scale=1.0"}/

View File

@@ -1,4 +1,4 @@
%html
%html{ "ng-csp": "no-unsafe-eval" }
%head
%meta{charset: 'utf-8'}/
%meta{name: 'viewport', content: "width=device-width,initial-scale=1.0"}/

View File

@@ -1,5 +1,5 @@
!!!
%html{:lang => "en"}
%html{:lang => "en", "ng-csp": "no-unsafe-eval" }
%head{"data-hook" => "admin_inside_head"}
= render :partial => 'spree/admin/shared/head'

View File

@@ -1,4 +1,4 @@
%html{ lang: "en" }
%html{ lang: "en", "ng-csp": "no-unsafe-eval" }
%head{"data-hook" => "admin_inside_head"}= render :partial => 'spree/admin/shared/head'
%body.admin{"data-ajax-root-path" => main_app.root_path}
#wrapper{"data-hook" => ""}