小程序测试调用API的时候,后端接口可以是http:IP地址+端口吗?

小程序 文章 2022-03-02 17:20 1526 0 全屏看文

AI助手支持GPT4.0

小程序测试调用API的时候,后端接口可以是http:IP地址+端口吗?When the applet test calls the API, can the back-end interface be http: IP address + port?

小程序测试调用API的时候,后端接口可以是http:IP地址+端口吗?

小程序测试调用API的时候,后端接口可以是http:IP地址+端口吗?正式发布的时候不可以,测试的时候可以吗?可以的话应该怎么做呢

谢谢大家解惑

Can the back-end interface be http: IP address + port when calling API for applet test? Not when it's officially released. Is it OK when it's tested? What should I do if I can? Thank you for your clarification

回答:

拾忆:

正式环境必须是HTTS+域名

测试的话

1.开发者工具勾选不校验安全域名

2.手机访问打开调试模式

李展兴:sB
Mr.Zhao:

测试的时候,右上角打开调试

.:

关闭不检验合法域名你试一下不就知道了

-EOF-

AI助手支持GPT4.0