lowcode-editor-send icon indicating copy to clipboard operation
lowcode-editor-send copied to clipboard

你好,请问一下我想配一下代理需要怎么设置

Open ZYQ007 opened this issue 2 years ago • 1 comments

我在package.json 中 设置了 "proxy": "http://...",其他地方没有改动, 其中baseURL,我设置成服务器地址或使用localhost地址都会跨域

ZYQ007 avatar Jan 04 '23 10:01 ZYQ007

componentDidMount() {
   proxy({
	onRequest: (config, handler) => {
		// config.url = this.state.baseURL + config.url; 
	},
   });
}

ccj-007 avatar Jan 07 '23 13:01 ccj-007