开发环境 运行到浏览器正常 打包发行H5后失效
报错
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').
Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame.
H5配置如下
"h5" : {
"router" : {
"base" : "./",
"mode" : "history"
},
"devServer" : {
"https" : false
}
}
1***@qq.com (作者)
我看到是localhost:13131 13131 端口 哪里配置
2022-03-03 11:32
BoredApe
回复 1***@qq.com: 这是
uni-app
私有端口,不需要配置2022-03-03 12:26