在本地的hosts文件添加配置信息
打开hosts文件,在文件中添加针对自己开发项目的xx.com结尾的域名
127.0.0.1 xxxx.xx.com
保存成功,在使用的时候用 http://xxxx.xx.com:3000
win10打开hosts文件:C:\Windows\System32\drivers\etc
另外,有blog文章介绍用指定目录的方式缓存cookie的方式解决:
https://blog.csdn.net/isMe_Lamb/article/details/108099013