1. 程式人生 > >http升級https的時候,遇到一個問題

http升級https的時候,遇到一個問題

pre 一個 test err must sts was -c meta

問題:

Mixed Content: The page at ‘https://api.xxxx.com/test‘ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://api.xxxx.com/test‘. This request has been blocked; the content must be served over HTTPS.

添加這個:

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

參考:

http://thehackernews.com/2015/04/disable-mixed-content-warning.html

http升級https的時候,遇到一個問題