http改成https请求

项目从http升级到https后,jsp页面存在发送http请求的情况下就会出现该异常。因为HTTPS 是 HTTP over Secure Socket Layer,以安全为目标的 HTTP 通道,所以在 HTTPS 承载的页面上不允许出现 http 请求。

以下页面头加到页面头部可以将页面http请求改成https请求

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />

posted @ 2020-12-14 18:49  逝年的我们  阅读(2253)  评论(0编辑  收藏  举报