LAO_WUUAN
LAO_WUUAN
  • 发布:2023-08-14 23:06
  • 更新:2023-08-14 23:06
  • 阅读:363

调试能不能用端口映射,

分类:uni-app

下面是用chrome出现的
发布问题前发现 360X 可以读取到云数据库 但还是给出警告 =>该网站从某个网络请求了一个子资源,由于其用户的特权网络位置,该网站只能访问该资源。这些请求将非公共设备和服务器暴露到internet上,增加了跨站请求伪造(CSRF)攻击和/或信息泄露的风险。为了降低这些风险,Chrome会弃用从非安全上下文发起的对非公共子资源的请求,并在Chrome 92(2021年7月)中开始屏蔽它们。

https://github.com/vuejs/vue-devtools
s11.v100.vip/:1 Access to XMLHttpRequest at 'http://192.168.150.104:8013/sockjs-node/info?t=1692025157395' from origin 'http://s11.v100.vip:34484' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private.
chunk-vendors.js:39664
GET http://192.168.150.104:8013/sockjs-node/info?t=1692025157395 net::ERR_FAILED
chunk-vendors.js:43650 [WDS] Disconnected!
DevTools failed to load source map: Could not load content for http://s11.v100.vip:34484/static/js/sockjs.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
s11.v100.vip/:1 Access to XMLHttpRequest at 'http://localhost:8013/sockjs-node/info?t=1692025157394' from origin 'http://s11.v100.vip:34484' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.
chunk-vendors.js:39664
GET http://localhost:8013/sockjs-node/info?t=1692025157394 net::ERR_FAILED
chunk-vendors.js:30545 [GtPush]
['already connected']
chunk-vendors.js:30545 [GtPush]
['already connected']
s11.v100.vip/:1 Access to XMLHttpRequest at 'http://192.168.150.104:8013/sockjs-node/info?t=1692025158496' from origin 'http://s11.v100.vip:34484' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private.
chunk-vendors.js:39664
GET http://192.168.150.104:8013/sockjs-node/info?t=1692025158496 net::ERR_FAILED
s11.v100.vip/:1 Access to XMLHttpRequest at 'http://127.0.0.1:7000/system/ping' from origin 'http://s11.v100.vip:34484' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.
chunk-vendors.js:16145
GET http://127.0.0.1:7000/system/ping net::ERR_FAILED
s11.v100.vip/:1 Access to XMLHttpRequest at 'http://192.168.150.104:7000/system/ping' from origin 'http://s11.v100.vip:34484' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private.
chunk-vendors.js:54446 当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。

  • 如果不使用uniCloud本地调试服务,请直接忽略此信息。
  • 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。
  • 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试
  • 检查系统防火墙是否拦截了HBuilderX自带的nodejs
  • 检查是否错误的使用拦截器修改uni.request方法的参数
2023-08-14 23:06 负责人:无 分享
已邀请:

要回复问题请先登录注册