特殊网络环境下,小程序客户端与服务端互通访问的问题?

微信问答 文章 2021-12-06 13:40 453 0 全屏看文

AI助手支持GPT4.0

特殊网络环境下,小程序客户端与服务端互通访问的问题?In a special network environment, the problem of intercommunication between the client and server of the applet?

特殊网络环境下,小程序客户端与服务端互通访问的问题?

老师好,我们有个微信小程序,有客户端也有服务端,用户有内网机制,微信是可以正常使用的,但用户的内网环境与小程序服务端网络环境是不通的,这种情况下,用户还能正常使用该小程序吗?小程序是否有内置的反向代理的处理机制,让用户使用小程序时不需要让所处网络环境与小程序服务端的网络环境互通?

情况总结如下:

1、用户能使用微信

2、用户可以访问微信小程序客户端

3、用户使用微信的网络环境与微信小程序服务端(放在腾讯云公网)不通

这种网络情况下,用户还能正常使用该小程序吗?

Hello, teacher, we have a wechat applet with both client and server. Users have intranet mechanism. Wechat can be used normally, but the user's Intranet environment is incompatible with the applet server network environment. In this case, can users still use the applet normally? Does the applet have a built-in reverse proxy processing mechanism so that users do not need to communicate with the network environment of the applet server when using the applet? The situation is summarized as follows: 1. Users can use wechat. 2. Users can access wechat applet client. 3. Users can use wechat applet normally under the condition that the network environment of wechat and wechat applet server (placed on Tencent cloud public network) are not connected?

鍥炵瓟锛�

刘培锋:

微信小程序采用前后端分离的架构,应该要支持内置反向代理吧,用户只关注我能访问微信小程序客户端即可,为何还要关注其服务端地址??

拾忆:

不能,小程序只有两种访问外部接口方式,公网和局域网。

刘培锋:微信小程序没有反向代理机制帮忙转调吗?
Mr.Zhao:

没外网访问不了服务器API

刘培锋:微信小程序没有反向代理机制帮忙转调吗?
Mr.Zhao:让用户把微信服务端接口加成白名单 ,不加就别用
Mr.Zhao:用户的服务器到底是个啥内网环境?能访问服务端api吗?
Mr.Zhao:内置反向代理有是个啥玩意?

-EOF-

AI助手支持GPT4.0