RSS Feed for This PostCurrent Article

Java–CORS Filter

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.

Trackback URL

Sorry, comments for this entry are closed at this time.