Forked from genediazjr/Add-CORS-Filter-to-Spring Maven.xml
Created
November 11, 2015 06:08
-
-
Save identityclash/cd650f17b40ddc7c0b42 to your computer and use it in GitHub Desktop.
Add CORS Filter to Spring Maven
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
<!-- Append to pom.xml --> | |
<dependency> | |
<groupId>com.thetransactioncompany</groupId> | |
<artifactId>cors-filter</artifactId> | |
<version>1.8</version> | |
</dependency> | |
<!-- Append to web.xml --> | |
<filter> | |
<filter-name>CORS</filter-name> | |
<filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>CORS</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment