PROD removed all warning, exported variable new Vue, added Content-Security-Policy head's meta

This commit is contained in:
2021-03-31 19:17:55 +02:00
parent 3042f97b29
commit 7eefa39e10
4 changed files with 18 additions and 5 deletions

View File

@@ -71,6 +71,17 @@ function materiotheme_preprocess_html(&$vars) {
$vars['page']['#attached']['html_head'][] = [$viewport, 'viewport'];
// drupal_add_html_head($viewport, 'viewport');
// https://stackoverflow.com/a/48700852
// <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
$content_security_policy = array(
'#tag' => 'meta',
'#attributes' => array(
'http-equiv' => 'Content-Security-Policy',
'content' => 'upgrade-insecure-requests',
),
);
$vars['page']['#attached']['html_head'][] = [$content_security_policy, 'content_security_policy'];
// $gv = [
// '#tag' => 'meta',
// '#attributes' => [