我从不同的控制器和子域发送相同的表单数据.但在一种情况下,我需要禁用CSRF验证.
例:
登录表格:
位置1:主页example.com
位置2:account.example.com/login
地点3: gate.example.com
gate.example.com
我需要禁用验证,以防我将数据从位置1发送到位置2.
我用了 $form = $this->beginWidget('CActiveForm',...
$form = $this->beginWidget('CActiveForm',...
我怎样才能做到这一点?
我认为csrf cookie不是跨域的!
php csrf yii
csrf ×1
php ×1
yii ×1