| I was trying to access jenkins via api, when api call is made in POSTMAN it is working perfectly fine, but if the same is accessed in an application(written in react), getting the following error
// code placeholder
"type": "default",
"status": 403,
"ok": false,
"headers": {
"map": {
"content-length": "813",
"x-permission-implied-by": "hudson.model.Hudson.Administer",
"x-you-are-in-group-disabled": "JENKINS-39402: use -Dhudson.security.AccessDeniedException2.REPORT_GROUP_HEADERS=true or use /whoAmI to diagnose",
"content-type": "text/html;charset=utf-8",
"x-content-type-options": "nosniff",
"date": "Sun, 28 Jul 2019 10:21:02 GMT",
"server": "Jetty(9.4.z-SNAPSHOT)",
"x-required-permission": "hudson.model.Hudson.Read",
"x-you-are-authenticated-as": "anonymous",
"x-jenkins-session": "63af948b",
"x-jenkins": "2.176.2",
"x-hudson": "1.395"
}
},
"url": "http://admin:admin@localhost:8080/api/json",
"_bodyInit": {
"_data": {
"size": 813,
"offset": 0,
"blobId": "dc017047-59b3-4dba-8762-38bc4d701714",
"__collector": null
}
},
"_bodyBlob": {
"_data": {
"size": 813,
"offset": 0,
"blobId": "dc017047-59b3-4dba-8762-38bc4d701714",
"__collector": null
}
}
}
From the above code, I tried disabling/enabling "x-you-are-in-group-disabled" but couldn't locate how/where to do it in jenkins To run jenkins - 'java -jar jenkins.war' is used url: localhost:8080 I tried disabling CSRF but the issue persists |