Spring Boot & Swagger UI. Set JWT token : <p>I have a Swagger config like this</p>

<pre><code>@EnableSwagger2
@Configuration
public class SwaggerConfig {
    @Bean
    public Docket api() {
        List&lt;SecurityScheme&gt; schemeList = new ArrayList&lt;&gt;();
        schemeList.add(new ApiKey(HttpHeaders.AUTHORIZATION, "JWT", "header"));
        return new Docket(DocumentationType.SWAGGER_2)
                .produces(Collections.singleton("application/json"))
                .consumes(Collections.singleton("application/json"))
                .ignoredParameterTypes(Authentication.class)
                .securitySchemes(schemeList)
                .useDefaultResponseMessages(false)
                .select()
                .apis(Predicates.not(RequestHandlerSelectors.basePackage("org.springframework.boot")))
                .paths(PathSelectors.any())
                .build();
    }
}
</code></pre>

<p>In the Swagger UI when I click on the Authorize button I enter my JWT token in the value field <code>eyJhbGc..nN84qrBg</code>. Now I expect that any request I do through the Swagger UI will contain the JWT in the header. However, that is not the case.
No request contains a Authorization header.</p>

<p>What am I missing?</p>
