Browse Source

修改tomcat配置,解决https的时候不能正常跳转页面

具体错误:Mixed Content: The page at
'https://localhost/login;JSESSIONID=c508e156-26a4-43fd-9da3-90a32a9999a5'
was loaded over HTTPS, but requested an insecure favicon
'http://localhost/login'. This request has been blocked; the content
must be served over HTTPS.
zyl 5 years ago
parent
commit
6c03cc66f0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/main/resources/application.yml

+ 3 - 0
src/main/resources/application.yml

@@ -6,6 +6,9 @@ server:
     max-threads: 1000
     min-spare-threads: 30
     uri-encoding: utf-8
+    remote_ip_header: x-forwarded-for
+    protocol_header: x-forwarded-proto
+    port-header: X-Forwarded-Port
   port: 8888
   session:
     timeout: 1800