This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: Cross Domain Requests to Picketlink SAML IDPpcraveiro Sep 15, 2014 5:05 PM (in response to hodrigohamalho)Hey Rodrigo, Quick answer is no. But I think you can create and add a custom valve to your application. So this custom valve can handle CORS pre-flight requests for you. Regards. 
- 
        2. Re: Re: Cross Domain Requests to Picketlink SAML IDPhodrigohamalho Sep 16, 2014 10:53 AM (in response to pcraveiro)1 of 1 people found this helpfulpom.xml <dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-catalina</artifactId> <version>8.0.11</version> <scope>provided</scope> </dependency> jboss-web.xml <valve> <class-name>org.rodrigoramalho.picketlink.CORSValve</class-name> </valve> CORSValve.java public class CORSValve extends ValveBase{ @Override public void invoke(Request request, Response response) throws IOException,ServletException { response.addHeader("Access-Control-Allow-Origin", "http://localhost:8080"); response.addHeader("Access-Control-Allow-Methods", "POST, GET"); response.addHeader("Access-Control-Max-Age", "3600"); response.addHeader("Access-Control-Allow-Headers", "x-requested-with, Content-Type"); getNext().invoke(request, response); } }
 
    