線上環(huán)境是https,測試環(huán)境是http,在線上想調(diào)測試接口,直接請求現(xiàn)在會報錯MixedContent:Thepageat'https:xxx'wasloadedoverHTTPS,butrequestedaninsecureXMLHttpRequestendpoint'http://xxx'.Thisrequesthasbeenblocked;thecontentmustbeservedoverHTTPS.是否可以用在http服務(wù)器設(shè)置CORS(跨域資源共享)來解決?
新手上路,如何在https域名下請求http接口求大佬指點!
眼眸繁星
2019-10-25 21:32:37