摘要:
在config目录下main.php中components参数下添加如下配置 'components' => [ 'request' => [ 'csrfParam' => '_csrf-backend', 'parsers' => [ 'application/json' => 'yii\web\ 阅读全文
posted @ 2024-03-21 11:53
雪后西溏
阅读(89)
评论(0)
推荐(0)
摘要:
由于自己在BaseController文件beforeAction中写了参数验证功能 导致在BaseController文件behaviors方法中跨域设置失效,更改到BaseModule文件behaviors中解决 路由设置与控制器不一致时许增加options请求解决跨域 'GET,OPTIONS 阅读全文
posted @ 2024-03-21 11:44
雪后西溏
阅读(180)
评论(0)
推荐(0)

浙公网安备 33010602011771号