Search code examples
jenkinsjenkins-api

Getting 404 when accessing Jenkins v2.73.1 crumbIssuer REST API


I try to call Jenkins crumIssuer API but got below error. working with Jenkins version 2.19.1 and not working with version 2.73.1

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /crumbIssuer/api/json. Reason:
<pre>    Not Found</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>

</body>
</html>


Solution

  • You have to have the Prevent Cross Site Request Forgery exploits option turned on under Manage Jenkins -> Configure Global Security.