Created
March 18, 2016 08:35
-
-
Save 4lberto/9536c4fcca2f45563dfa to your computer and use it in GitHub Desktop.
Temproray Spring configuration for filters
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
Temprary spring configuration: | |
<bean id="originalCorsFilter" class="org.ebaysf.web.cors.CORSFilter"> | |
</bean> | |
<bean id="corsFilter" class=com.ib.framework.utils.cors.FilterDecoratorForSpring"> | |
<constructor-arg ref="originalCorsFilter"></constructor-arg> | |
<constructor-arg> | |
<map> | |
<entry key="cors.allowed.origins" value="*" /> | |
<entry key="cors.allowed.methods" value="GET,POST,HEAD,OPTIONS,PUT,DELETE" /> | |
<entry key="cors.allowed.headers" | |
value="Accept,Access-Control-Request-Method,Access-Control-Request-Headers,Accept-Language,Authorization,Content-Type,Request-Name,Request-Surname,Origin,X-Request-AppVersion,X-Request-OsVersion, X-Request-Device,X-Requested-With" /> | |
<entry key="cors.exposed.headers" value="" /> | |
<entry key="cors.preflight.maxage" value="100" /> | |
</map> | |
</constructor-arg> | |
</bean> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment