We want to open our website in tag, But It not happen with the latest chrome browser. I have tried various solutions for that but still I am not able to open our website in in chrome. When I run the code In another browser login page open and we are able to login, but in chrome login page open but not able to login. there are no exceptions in the browser console.
If anyone Knows Please Reply
This is the filter where I set the cookies
@Configuration
public class IFrameFilter extends GenericFilterBean {
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
((HttpServletResponse) response).setHeader("Access-Control-Allow-Origin", "*");
((HttpServletResponse) response).setHeader("Set-Cookie", "locale=de; HttpOnly; SameSite=None; Secure");
chain.doFilter(request, response);
}
}
//Html code base
<!DOCTYPE html>
<html>
<body>
<h1>The iframe element</h1>
<iframe src="https://devs.smart360.biz/" title="W3Schools Free Online Web Tutorials"
style="width:500px;height:500px;">
</iframe>
</body>
</html>