uniapp跨域问题,在开发环境中配置

manifest.json代码:

复制代码
"devServer" : {
            "https" : true,
            "port" : "8082",
            "disableHostCheck" : true,
            "proxy" : {
                "/" : {
                    "target" : "http://192.168.30.172",
                    "changeOrigin" : true,
                    "secure" : true
                }
            }
        },
相关推荐
GISer_Jing1 小时前
Three.js着色器编译机制深度解析
javascript·webgl·着色器
丷丩1 小时前
MapLibre GL JS第22课:查看本地GeoJSON
前端·javascript·map·mapbox·maplibre gl js
油炸自行车1 小时前
Claude Code 错误:API Error: 400 Failed to deserialize the JSON body into the
开发语言·javascript·json·trae·claude code·api error 400
丷丩5 小时前
MapLibre GL JS第19课:实时更新要素
前端·javascript·gis·map·mapbox·maplibre gl js
xiaohua0708day6 小时前
Lodash库
前端·javascript·vue.js
万物皆对象6666 小时前
切换路由时页面空白问题(vue3)
前端·vue.js·typescript
突然好热6 小时前
TS 调试技巧
前端·javascript·typescript
h64648564h6 小时前
Flutter 国际化(i18n)全指南:一键切换中/英/日多语言
前端·javascript·flutter
丷丩8 小时前
MapLibre GL JS第8课:禁用滚动缩放
javascript·mapbox·maplibre gl js
李剑一8 小时前
小红书前端架构面试问的挺深入啊!面试官:Vue中组合式API与选项式API的设计权衡
vue.js·面试