libdo

Untitled

Sep 26th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <filter>
  2. <filter-name>CORS</filter-name>
  3. <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
  4. <init-param>
  5. <param-name>cors.allowGenericHttpRequests</param-name>
  6. <param-value>true</param-value>
  7. </init-param>
  8. <init-param>
  9. <param-name>cors.allowOrigin</param-name>
  10. <param-value>*</param-value>
  11. </init-param>
  12. <init-param>
  13. <param-name>cors.allowSubdomains</param-name>
  14. <param-value>true</param-value>
  15. </init-param>
  16. <init-param>
  17. <param-name>cors.supportedMethods</param-name>
  18. <param-value>GET, HEAD, POST, OPTIONS</param-value>
  19. </init-param>
  20. <init-param>
  21. <param-name>cors.supportedHeaders</param-name>
  22. <param-value>Content-Type, X-Requested-With</param-value>
  23. </init-param>
  24. <init-param>
  25. <param-name>cors.exposedHeaders</param-name>
  26. <param-value>X-Test-1, X-Test-2</param-value>
  27. </init-param>
  28. <init-param>
  29. <param-name>cors.supportsCredentials</param-name>
  30. <param-value>true</param-value>
  31. </init-param>
  32. <init-param>
  33. <param-name>cors.maxAge</param-name>
  34. <param-value>-1</param-value>
  35. </init-param>
  36. </filter>
  37. <filter-mapping>
  38. <filter-name>CORS</filter-name>
  39. <url-pattern>/*</url-pattern>
  40. </filter-mapping>
Add Comment
Please, Sign In to add comment