PROD removed all warning, exported variable new Vue, added Content-Security-Policy head's meta
This commit is contained in:
@@ -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' => [
|
||||
|
Reference in New Issue
Block a user