我正在尝试通过开发一个网站来学习Angular,当我尝试从Github HTTP获取我的Github贡献并在网站上显示它时,我收到以下错误。
Failed to load https://github.com/users/kapil5harma/contributions: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://kapil5harma.netlify.com' is therefore not allowed access.
我能够看到它使用适用于Chrome的CORS插件在我的本地工作,但是当在网站上部署相同的代码时,它会抛出上述错误。