問題:http error 403 no valid crumb was included in the request
方法:
1瞻坝、找到Jenkins安裝目錄--打開jenkins.xml
2间驮、找到啟動命令:
<arguments>-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Develop\Jenkins\jenkins.war" --httpPort=8080 --webroot="%LocalAppData%\Jenkins\war"</arguments>
3淤袜、添加:-Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION=true
4、結(jié)果為:
<arguments>-Xrs -Xmx256m -Dhudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION=true -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Develop\Jenkins\jenkins.war" --httpPort=8080 --webroot="%LocalAppData%\Jenkins\war"</arguments>
5拂募、重啟jenkins
6拂到、關(guān)閉結(jié)果: