lowcode-editor-send
lowcode-editor-send copied to clipboard
你好,请问一下我想配一下代理需要怎么设置
我在package.json 中 设置了 "proxy": "http://...",其他地方没有改动, 其中baseURL,我设置成服务器地址或使用localhost地址都会跨域
componentDidMount() {
proxy({
onRequest: (config, handler) => {
// config.url = this.state.baseURL + config.url;
},
});
}