微信云托管部署了一个websever服务开放了内网访问(比如:internal.com),然后又部署了一个前端项目,请问前端项目api请求要怎么设置?
我使用http://internal.com/api/xx访问时,提示
contentInt.js:1 Mixed Content: The page at 'https://xxx.com/#/login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://internal.com/admin/login'. This request has been blocked; the content must be served over HTTPS.
是要https访问吗?
前端项目是另外一个云托管服务么?还是纯静态前端?内网访问是一个云托管的服务通过内网访问另外一个云托管服务。如果把前端项目也部署成了云托管服务,那请求路径应该是:页面 -- 前端项目的后台转发 -- 后端服务