Java–CORS Filter
By admin on Nov 24, 2013 in Java, open source, security
Cross-origin resource sharing (CORS) is a mechanism that allows JavaScript on a web page to make XMLHttpRequests to another domain, not the domain the JavaScript originated from. Such “cross-domain” requests would otherwise be forbidden by web browsers, per the same origin security policy.
eBay CORS filter is a Java Servlet Filter implementation of server-side CORS for Java web containers such as Apache Tomcat. Salient features:
- Easy to integrate and use – enable CORS capability with a few lines in your web.xml!
- Protects against CRLF injection / response splitting attacks.
Another CORS filter for Java is is also available here.
Sorry, comments for this entry are closed at this time.