title: Enabling cors in dropwizard not working
body: <p>I'm working on a dropwizard application and js ui to interacte with the api. I need to load json data to  update views but I have to enable cors in dropwizard before that. I did some staff but it seems not working because dropwizard returns allways 204 no content.</p>
  
  <pre><code>@Override
  public void run(final BGConfiguration configuration, final Environment environment) throws Exception {
    final Map&lt;String, String&gt; params = new HashMap&lt;&gt;();
    params.put("Access-Control-Allow-Origin", "/*");
    params.put("Access-Control-Allow-Credentials", "true");
    params.put("Access-Control-Expose-Headers", "true");
    params.put("Access-Control-Allow-Headers", "Content-Type, X-Requested-With");
    params.put("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
    environment.servlets().addFilter("cors", CrossOriginFilter.class).setInitParameters(params);
  }
  </code></pre>