sso单点登录,HTTP跳转HTTPS登录后回跳HTTP
2017-08-22 17:57
316 查看
之前在单点登录服务器里直接回跳登录以前的页面很正常,但是使用HTTPS协议的时候。当调用response.sendredirect(url)时会把HTTP协议自动转换为HTTPS协议。造成回跳不通过。因此需要一个中间页面,通过页面跳转,不使用服务器的跳转方法。
写一个跳转页面href.html。把跳转的地址传到页面上,通过jsp跳转就行了。
写一个跳转页面href.html。把跳转的地址传到页面上,通过jsp跳转就行了。
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"/> <script th:inline="javascript"> window.location.href=[[${url}]]; </script> </head> <body> </body> </html>
相关文章推荐
- CakePHP: HTTPS HTTP页面跳转导致登录信息丢失
- 自定义HttpModule,用于未登录用户,不弹出Windows认证窗口,而是跳转回SSO站点
- 多种服务器配置http自动跳转https方案
- Nginx跳转任意Http请求到Https
- Nginx跳转任意Http请求到Https
- 多公网端口下的tomcat-http跳转到tomcat-https
- nginx http自动跳转https post参数丢失问题
- 实现HTTP跳转到HTTPS
- tomcat设置https访问(http自动跳转到https)
- Nginx配置http强制跳转到https
- http切换https后redirect跳转过滤
- nginx http跳转到https
- chrome解决http自动跳转https问题
- Tomcat http跳转https
- Apache由http自动跳转到https的方法
- HSTS 网站http跳转到https
- web页面http跳转https
- Nginx跳转任意Http请求到Https
- Nginx跳转任意Http请求到Https
- nginx http跳转https