Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-76138

GitLab webhook to Jenkins fails with 403 (No valid crumb) after plugin update

XMLWordPrintable

      Hello,

      Since a short time, I am facing an issue when triggering a Jenkins webhook from GitLab.

      The error shown in GitLab is:

      Hook executed successfully but returned HTTP 403 <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 403 No valid crumb was included in the request</title> </head> <body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2> <table> <tr><th>URI:</th><td>/project/dape</td></tr> <tr><th>STATUS:</th><td>403</td></tr> <tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr> <tr><th>SERVLET:</th><td>Stapler</td></tr> </table> <hr/><a href="https://jetty.org/">Powered by Jetty:// 12.0.25</a><hr/> </body> </html> 

      It was working fine before, but after I updated some Jenkins plugins and renewed the GitLab PAT, the webhook integration broke.

      • Jenkins version:  2.516.3
      • GitLab version: 18.1.1

      I will provide screenshots of the current configuration (GitLab webhook + Jenkins job setup).

      Expected behavior:
      The webhook should correctly trigger the Jenkins job as before, without the 403 crumb error.

      Actual behavior:
      Webhook returns a 403 error (No valid crumb).

      Steps already tried:

      • Renewed the Group Token in GitLab.
      • Checked CSRF protection settings (Enable proxy compatibility was enabled).
      • Retested with the same URL.
      • Added a secret

       

       

       

       

       

       

        1. image-2025-09-23-09-14-00-822.png
          91 kB
          Walid
        2. image-2025-09-23-09-14-36-008.png
          146 kB
          Walid
        3. image-2025-09-23-09-14-40-968.png
          115 kB
          Walid
        4. image-2025-09-23-09-15-42-966.png
          108 kB
          Walid
        5. image-2025-09-23-09-16-25-237.png
          115 kB
          Walid
        6. image-2025-09-23-09-16-53-202.png
          93 kB
          Walid

            baymac Parichay Barpanda
            wsalhibelkace Walid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: