Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 489
Eranga Kodikara Avatar asked Dec 18 '22 03:12

Eranga Kodikara


1 Answers

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

like image 132
Rob Hales Avatar answered May 28 '23 14:05

Rob Hales