Insecure content in iframe on secure page

后端 未结 3 2042
有刺的猬
有刺的猬 2020-12-04 20:46

I\'m in the in the process of developing an application for a client, which will have an SSL certificate and be served under https. However, to integrate with their existing

3条回答
  •  没有蜡笔的小新
    2020-12-04 21:34

    If your page is being accessed using https://www.example.com/main/index.jsp (SSL) then your browser will complain with "This page contains both secure and insecure items" if there are any resources in the HTML code that are referenced with http:// (non-SSL). This includes iframes.

    If your navigation page is hosted on the same server then you can prevent the "insecure content" message by using a relative URL like this...