微信小程序开发环境调试接口
小程序 大约 357 字开发环境调试
使用localhost
或其他开发环境接口时,控制台报错:
http://localhost 不在以下 request 合法域名列表中
request:fail url not in domain list
跳过域名检测
在微信开发者工具中,临时开启不校验合法域名、web-view(业务域名)、TLS版本以及HTTPS证书
选项,跳过服务器域名的校验。此时,在微信开发者工具中及手机开启调试模式时,不会进行服务器域名的校验。
设置IP
代码中指定的URL地址必须是本机IP地址,不能是localhost和127.0.0.1。
图示
参考
https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html
阅读 3639 · 发布于 2020-02-04
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
PHP 判断函数、类、方法、属性、数组中的 key 是否存在阅读 3623
-
Java11 -Xms -Xmx 设置堆内存大小时的注意事项阅读 2084
-
Nginx 配置之 worker_processes阅读 4392
-
H2 Syntax error in SQL statement expected "identifier"阅读 805
-
filebeat read: connection reset by peer阅读 3708
-
走进 Rust:闭包阅读 2526
-
Spring Boot2 关闭 Spring Security 权限验证阅读 15269
-
MySQL Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root阅读 4958
-
Linux 常用命令之查看系统信息阅读 2233
-
Spring 与 JPA 中的 @Transactional 注解的区别阅读 459