Error 403 No valid crumb was included in the request

Edit on GitHub

You get the error: Error 403 No valid crumb was included in the request

Solution

Enable Jenkins CSRF protection:

  1. In the deploy file, enable the usage of the CSRF variable:
...
services:
  scheduler:
    csrf-protection-enabled: true
...
  1. In the config file, enable Jenkins CSRF protection by defining the CSRF variable:
...
$config[SchedulerJenkinsConstants::JENKINS_CONFIGURATION] = [
    SchedulerConfig::SCHEDULER_JENKINS => [
        SchedulerJenkinsConfig::SCHEDULER_JENKINS_CSRF_ENABLED => (bool)getenv('SPRYKER_JENKINS_CSRF_PROTECTION_ENABLED'),
    ],
];
...