title: Spring CORS Mapping with '*' wildcard not working
body: <p>I have a Spring Boot Application. In the Application class I define my CORS mappings like this:</p>
  
  <pre><code>@Bean
      public WebMvcConfigurer corsConfigurer() {
          return new WebMvcConfigurerAdapter() {
              @Override
              public void addCorsMappings(CorsRegistry registry) {
                  registry.addMapping("/lists");
              }
          };
      }
  </code></pre>
  
  <p>Everything works with this, but when I want to add a mapping that contains e.g. an ID like this</p>
  
  <pre><code>registry.addMapping("/lists/**");  // it also doesn't work with '/lists/*'
  </code></pre>
  
  <p>, the mapping doesn't work anymore and I receive a "No Access-Control-Allow-Origin Header" error on a GET request like "/lists/142"</p>
  
  <p>As shown in <a href="https://spring.io/blog/2015/06/08/cors-support-in-spring-framework" rel="nofollow noreferrer">https://spring.io/blog/2015/06/08/cors-support-in-spring-framework</a> , I have tried to use "/**" as a mapping to allow requests on all endpoint URLs, but only endpoints <em>without</em> dynamic values (e.g. IDs) seem to work fine. </p>