本菜鸡最近在写某个页面请求数据时,报了如下的错误. Failed to load https://...:No 'Access-Control-Allow-Origin' header is present on the requested resource.Origin 'http://127.0.0.1:7070' is therefore not allowed access. 了解原因后,得知是由于跨域请求导致的,学习了一下跨域及同源策略相关知识后,写了个demo玩玩 简单聊聊跨域 要了