mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 17:48:37 +08:00
Fixes #3358: Removed automatic CSRF meta tag generation by View. Added Html::csrfMetaTags() and its call to main layout files
This commit is contained in:
@@ -30,6 +30,7 @@ $this->beginPage();
|
||||
<meta charset="<?= Yii::$app->charset ?>"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="language" content="en" />
|
||||
<?= Html::csrfMetaTags() ?>
|
||||
<?php $this->head() ?>
|
||||
<title><?= Html::encode($this->context->pageTitle) ?></title>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user