How to define CORS in Websphere Application Server Liberty Profile V8.5
问题 Is it possible to apply cross-origin resource sharing (CORS) in a Websphere Application Server Liberty Profile V8.5 ? I searched the redbook but couldn't find IBM mention anything about it. (http://www.redbooks.ibm.com/abstracts/sg248076.html?Open) It's not possibility for me to set the headers programmatically like this: Access-Control-Allow-Origin: * (http://enable-cors.org/server.html) 回答1: You have to add following jars to your WEB-INF/lib folder: cors-filter-1.8.jar java-property-utils-1