Re: ajax for https in struts

2017-03-20 Thread Christoph Nenning
> From: Emi <em...@encs.concordia.ca> > To: Struts Users Mailing List <user@struts.apache.org>, > Date: 17.03.2017 16:57 > Subject: ajax for https in struts > > Hello, > > Ajax methods work in http, but NOT https. > > Seems due to cross-origin HTTP

ajax for https in struts

2017-03-17 Thread Emi
Hello, Ajax methods work in http, but NOT https. Seems due to cross-origin HTTP request. May I know how to setup "Access-Control-Allow-Origin" in struts/jsp/servlet please? Have tried the following but did NOT work. (1) mainlayout.jsp response.addHeader("Access-Control-Allow-Origin",