用angular代理方式解决开发中跨域问题

创建一个代理的配置文件 ,在根目录即可 proxy.conf.json

来到angular.json

然后

ng serve –open

 

发表评论