t***@163.com
t***@163.com
  • 发布:2021-04-14 12:09
  • 更新:2021-04-14 12:12
  • 阅读:808

当https设为true,那proxy代理就不生效

分类:uni-app

manifest.json -> h5 -> devServer -> https 设为true 那proxy代理就不生效

    "h5": {  
    "devServer": {  
        "port": 8080,  
        "disableHostCheck": true,  
        "https": true,  
        "proxy": {  
            "/dpc": {  
                "target": "https://192.168.1.102",  
                "changeOrigin": true,  
                "secure": false,  
                "pathRewrite":{  
                    "^/dpc": "/"  
                }  
            }  
        }  
    }  
}
2021-04-14 12:09 负责人:无 分享
已邀请:
t***@163.com

t***@163.com (作者)

vue.config.js可以实现, manifest.json不行了

  • d***@163.com

    vue.config.js怎么实现的,可以看下源码吗?

    2021-05-20 15:33

该问题目前已经被锁定, 无法添加新回复