Created
April 8, 2014 11:56
-
-
Save kubek2k/10114138 to your computer and use it in GitHub Desktop.
Dropwizard 0.7.0 CORS configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
environment.servlets().addFilter("cors-filter", CrossOriginFilter.class) | |
.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST), true, "/*"); |
I give it super 5 stars :)
Indeed, it works perfectly!!! 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works perfect!