blocked cross-origin response 跨域
前端解决跨域
module.exports = {
devServer: {
open: true,
host: ‘localhost’,
port: 8080,
https: false,
hotOnly: false,
proxy: { // 配置跨域
‘/api’: {
target: ‘https://****/api’, // 原主网址
ws: true,
changOrigin: ...
原创
2019-09-09 07:57:02 ·
349 阅读 ·
0 评论