我们的服务是 https 安全通道,需要请求另外一个http接口,基于jquery的ajax方法。
1、在http页面请求http页面,没问题。
2、在https页面请求http页面,有问题,报错“This request has been blocked; the content must be served over HTTPS.”
问题:如何使用jQuery在https页面请求http接口?和跨域没关,应该怎么排除这个问题呢!
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证高级PHP讲师