VUE+Springboot項目使用反向代理實現跨域請求的兩種方式

方法1:javascript 利用vue-cli自帶的反向代理配置proxyTable,在modules.export中配置以下:html proxyTable: { '/api': { target: 'http://localhost:8080',// 請換成你的後端ip地址 changeOrigin: true, pathRewri
相關文章
相關標籤/搜索