mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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"}/
|
||||
|
||||
@@ -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"}/
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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" => ""}
|
||||
|
||||
Reference in New Issue
Block a user