weixin_54363108 2021-06-17 10:29 采纳率: 84.2%
浏览 1978
已结题

vue项目发布到线上用的https,里面的iframe中有http被拦截

Mixed Content: The page at 'https://XXXXXX' was loaded over HTTPS, but requested an insecure frame 'http://XXXXX'. This request has been blocked; the content must be served over HTTPS.

 前端如何修改

  • 写回答

1条回答 默认 最新

  • 崽崽的谷雨 2021-06-17 10:44
    关注

    给html加上这个试试<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 一般在index.html再或者让后端设置一下

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 8月27日
  • 已采纳回答 8月19日