线上环境是https,测试环境是http,在线上想调测试接口,直接请求
现在会报错Mixed Content: The page at 'https:xxx' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxx'. This request has been blocked; the content must be served over HTTPS.
是否可以用在http服务器设置CORS(跨域资源共享)来解决?
两种处理思路: