Package hudson.cli

Class CliCrumbExclusion

All Implemented Interfaces:
ExtensionPoint

@Extension @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public class CliCrumbExclusion extends CrumbExclusion
Makes CLI HTTP fallback work with CSRF protection enabled (JENKINS-18114).
  • Constructor Details

    • CliCrumbExclusion

      public CliCrumbExclusion()
  • Method Details

    • process

      public boolean process(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Description copied from class: CrumbExclusion
      This method is called for every incoming POST request.
      Overrides:
      process in class CrumbExclusion
      Returns:
      true to indicate that the callee had processed this request (for example by reporting an error, or by executing the rest of the chain.)
      Throws:
      IOException
      jakarta.servlet.ServletException