<%
String headerName = "X-Frame-Options";
String headerValue = "ALLOW-FROM ";
String pvtURL = "https://hbchat.senseforth.com";
String uatURL="https://hbankuat.senseforth.com";
String referer = request.getHeader("Referer");
if(referer.contains(pvtURL)){
response.setHeader(headerName , headerValue.concat(pvtURL));
}else if(referer.contains(prodURL)){
response.setHeader(headerName , headerValue.concat(prodURL));
}else if(referer.contains(dedicatedURL)){
response.setHeader(headerName , headerValue.concat(dedicatedURL));
}else if(referer.contains(pvtOtherURL)){
response.setHeader(headerName , headerValue.concat(pvtOtherURL));
}else if(referer.contains(prodOtherURL)){
response.setHeader(headerName , headerValue.concat(prodOtherURL));
} else if(referer.contains(uatURL)){
response.setHeader(headerName , headerValue.concat(uatURL));
}
else{
response.setHeader(headerName , headerValue.concat(prodURL));
}
%>