title: Swagger UI empty and gives 403
body: <p>I'm using spring boot and I've added swagger to my dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
          &lt;version&gt;2.8.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
          &lt;version&gt;2.8.0&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>My configuration:</p>
  
  <pre><code>@Configuration
  @EnableSwagger2
  public class SwaggerConfiguration {
      @Bean
      public Docket api() {
          return new Docket(DocumentationType.SWAGGER_2)
                  .select()
                  .apis(RequestHandlerSelectors.any())
                  .paths(PathSelectors.any())
                  .build();
      }
  }
  </code></pre>
  
  <p>When I go this url:</p>
  
  <p><a href="http://localhost:8080/v2/api-docs" rel="nofollow noreferrer">http://localhost:8080/v2/api-docs</a> it works and I get the json back.</p>
  
  <p>The swagger ui <a href="http://localhost:8080/swagger-ui.html" rel="nofollow noreferrer">http://localhost:8080/swagger-ui.html</a></p>
  
  <p>Is just an empty page now when I inspect the network tab in chrome I see this:</p>
  
  <pre><code>Failed to load resource: the server responded with a status of 403 ()
  swagger-ui-standalone-preset.js Failed to load resource: the server responded with a status of 403 ()
  swagger-ui.css Failed to load resource: the server responded with a status of 403 ()
  springfox.js Failed to load resource: the server responded with a status of 403 ()
  swagger-ui-bundle.js Failed to load resource: the server responded with a status of 403 ()
  swagger-ui-standalone-preset.js Failed to load resource: the server responded with a status of 403 ()
  springfox.js Failed to load resource: the server responded with a status of 403 ()
  webjars/springfox-swagger-ui/favicon-32x32.png?v=2.8.0-SNAPSHOT Failed to load resource: the server responded with a status of 403 ()
  webjars/springfox-swagger-ui/favicon-16x16.png?v=2.8.0-SNAPSHOT Failed to load resource: the server responded with a status of 403 ()
  springfox.css Failed to load resource: the server responded with a status of 403 ()
  swagger-ui.css Failed to load resource: the server responded with a status of 403 ()
  </code></pre>
  
  <p>I'm using spring boot security and I added this to my security configuration:</p>
  
  <pre><code>@Override
  public void configure(WebSecurity web) throws Exception {
      web.ignoring().antMatchers("/v2/api-docs/**");
      web.ignoring().antMatchers("/swagger.json");
      web.ignoring().antMatchers("/swagger-ui.html");
  }
  </code></pre>
  
  <p>Can somebody help me?</p>