react跨域问题的解决方法:首先在【package.json】中加入【proxy": "http://localhost:8000】;然后页面中的请求【fetch('/api/userdata/')】会转发到proxy中的地址。
技术文章 / 下载软件趣味内容 / 专业带飞