Angular11 使用proxy.conf.json解决跨域问题 文章目录 Angular11 使用proxy.conf.json解决跨域问题 一、在根目录下创建proxy.conf.json 二、前端请求 三、修改package.json 一、在根目录下创建proxy.conf.json { "/api": { "target": "http://localhost:8080", "logLevel": "debug", "changeOrigin":