阅读背景:

在Yii2中通过链接使用AJAX提交时的CSRF问题

来源:互联网 

I'm using Yii2 and have been using a link that does a POST via AJAX to retrieve some data and it has been working fine; however I have noticed that if I remove a form from the page it no longer works and does not send a CSRF token in the headers for some reason. and have been using a link that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: