How to disable Crumb Jenkins to by pass 403 error – Forum – Mas AL Forum

BLOG IT SYSADMIN

Daftar akun digitalocean untuk mendapatkan free credit 100$.
DigitalOcean Referral Badge
How to disable Crum...
 
Notifications
Clear all

How to disable Crumb Jenkins to by pass 403 error

2 Post
1 Pengguna
0 Reactions
12 Dilihat
Post: 20
Admin
Topic starter
(@alvian)
Trusted Member
Joined: 4 tahun lalu
  1. Login to your jenkins with superadmin user
  2. Access link http://your-jenkins-url/script
  3. Then execute this script:
    import jenkins.model.Jenkins
    Jenkins.instance.setCrumbIssuer(null)
    Jenkins.instance.save()
  4. Try again running your jenkins webhook to trigger autodeploy from http request
1 Reply
Post: 20
Admin
Topic starter
(@alvian)
Trusted Member
Joined: 4 tahun lalu

if you want to re-enable the crumbs jenkins. Please execute this script below:

import hudson.security.csrf.DefaultCrumbIssuer
import jenkins.model.Jenkins

def j = Jenkins.instance
j.setCrumbIssuer(new DefaultCrumbIssuer(true))  
j.save()
Reply
Share: