完美解决序微信小程序不能用本地ip调试的问题,不在以下 request 合法域名列表中,请参考文档:https://d

news/2024/7/20 3:03:43 标签: 小程序

微信小程序不能用本地ip调试的问题,错误如下

不在以下 request 合法域名列表中,请参考文档:https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html

 

i

 

通过链接过去看到

 

 

只要通过对微信开发者工具进行以下设置即可解决问题

 

 

选上下图箭头所指的选项


http://www.niftyadmin.cn/n/1464347.html

相关文章

jquery添加click事件,jq动态添加click事件多种方式分享

目录: 添加方式 实例演示 添加方式 $("#ImId1").click(function(){}); $("#ImId2").bind("click",function(){}) $("#ImId3").on("click",function(){}) $("body").delegate("#xxx","c…

内网穿透,解决vue项目中的“Invalid Host header”

在webpack.dev.config.js,加入devServer: { disableHostCheck: true },具体如下图 结果就能通过内网穿透了,访问结果

配置spring boot jpa控制台打印sql日志

在application.properties中加入以下两行 spring.jpa.properties.hibernate.format_sqltrue spring.jpa.properties.hibernate.show_sqltrue运行起来看到这样的结果

看完这篇能解决一些关于element ui table控件的使用常见问题,如table中自定义a标签,列中加入复选框或者序号列,时间控件的格式问题等

在script中加入 var app new Vue({el: #app,data: function () {return { itemList:[],}}, created: function() {//初始化你的table数据this.itemList你的list数据 }, methods: { submitForm: function (formName) {// }, resetForm: function (formName) {this.$refs[form…

java 模拟表单post提交

Java /*** 模拟提交表单* param url* param sb*/ public static String postByFormData(String url,StringBuffer sb){String responseMessage "";StringBuffer response new StringBuffer();HttpURLConnection httpConnection null;OutputStreamWriter out nul…

记录一次linux 安装jdk1.8

准备linux 版本的jdk ,自行到百度找到并下载,这里只介绍预备好压缩包的安装方式 传到服务器你管理软件的文件夹, 我的是/usr/local/soft 创建一个用来安装java的文件夹 mkdir /usr/local/java 从刚准备好的tar包的文件夹中解压到/usr/local/java中 tar zxvf /u…

linux 安装nginx,nginx error: the HTTP rewrite module requires the PCRE library;the HTTP gzip module re

问题:nginx error: the HTTP rewrite module requires the PCRE library. 执行:yum -y install pcre-devel 问题:the HTTP gzip module requires the zlib library. 执行:yum install -y zlib-devel

Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:XXX repackag age faile

问题 [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.0.RELEASE:repackage (repackage) on project mb-bg-fw-web: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.0.RELEASE:repackage failed:…