Created
May 10, 2017 16:47
-
-
Save alefhsousa/dac742f76f20efe9009dcdd435624ae3 to your computer and use it in GitHub Desktop.
CorsAdapterSpring.java
This file contains hidden or 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
@Configuration | |
public class CorsAdapter extends WebMvcConfigurerAdapter { | |
@Override | |
public void addCorsMappings(final CorsRegistry registry) { | |
registry.addMapping("/**"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment