原因:被过滤器csrf拦截。
解决:
方法1
Nginx添加 proxy_set_header X-Forwarded-Proto https; 到配置信息中
location /zentao/ {
proxy_pass http://127.0.0.1:81/zentao/;
# Fixed can not be install
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Fixed login failed
proxy_set_header X-Forwarded-Proto https;
proxy_set_header REFERER $http_referer;
}
方法2
在禅道目录zbox/app/zentao/config/my.php文件中新增一行命令
$config->framework->filterCSRF = false;
或者在禅道目录zbox/app/zentao/config/config.php文件中更改一行命令
$config->framework->filterCSRF = false;