当前位置:网站首页>Uniapp H5 cross domain problem
Uniapp H5 cross domain problem
2022-07-27 18:39:00 【mr_ cmx】
1、 open manifest.json file
2、 Click the source view 
3、 Add the following code at the end of the object
"h5":{
"devServer": {
"proxy": {
"/api": {
"target": "https://myurl.cn",
"ws": true,
"changeOrigin": true,
"pathRewrite": {
"^/api": ""
}
}
}
}
}
4、 after h5 When sending a request ,url use ‘/api’ Replace ‘https://myurl.cn’( That is, your server address ) That's it , and vue Set up proxy almost
边栏推荐
- Deep learning: Gan optimization method dcgan case
- 2021.7.30 note index
- MySQL学习 Day1 DDL、DML、DQL基础查询
- JDBC learning day1:jdbc
- Machine learning -- error caused by only one kind of label data in SVM training set
- 2021.7.19 notes DML
- mysql视图基本操作
- [MIT 6.S081] Lab 4: traps
- 常用词词性表
- Wechat applet wxacode.getunlimited generates applet code
猜你喜欢
![[MIT 6.S081] Lec 5: Calling conventions and stack frames RISC-V 笔记](/img/1f/6384f4831718477f0567540250f352.png)
[MIT 6.S081] Lec 5: Calling conventions and stack frames RISC-V 笔记
![[mit 6.s081] LEC 6: isolation & system call entry/exit notes](/img/b3/89b3688a06aa39d894376d57acb2af.png)
[mit 6.s081] LEC 6: isolation & system call entry/exit notes

Deep learning: gat

2021.7.30 note index
![[MIT 6.S081] Lab 11: networking](/img/9d/cca59a662412f3c3c57c26c5987a24.png)
[MIT 6.S081] Lab 11: networking
![[mit 6.s081] LEC 8: page faults notes](/img/e2/0f5332dd9d2b439bcf29e87a9fa27f.png)
[mit 6.s081] LEC 8: page faults notes

搭建一个简单的知识问答系统

2021.8.6 notes jsoup

Common commands of database 1

Installation and deployment of zabbix6.0
随机推荐
Random talk on GIS data (V) - geographic coordinate system
[MIT 6.S081] Lab 6: Copy-on-Write Fork for xv6
「MySQL那些事」一文详解索引原理
你有没有在MySQL的order by上栽过跟头
2021.7.31笔记 视图
[MIT 6.S081] Lab 9: file system
2021.7.19笔记 DML
微信小程序多文件上传
[MIT 6.S081] Lec 8: Page faults 笔记
微信小程序 wxacode.getUnlimited生成小程序码
机器学习分类任务效果评估指标大全(包含ROC和AUC)
An analysis of CPU explosion of a smart logistics WCS system in.Net
如何实现Word、PDF、TXT文件的全文内容检索?
[MIT 6.S081] Lab 3: page tables
2021.8.9 note request
[mit 6.s081] LEC 6: isolation & system call entry/exit notes
2021.8.7笔记 servlet
A case to understand MySQL view
MySQL查询列必须和group by字段一致吗?
2021.7.18 notes MySQL data type