我正在使用Angular项目来显示搜索查询的基本细节。每当我使用https://en.wikipedia.org/api/rest_v1/page/summary/Stack_Overflow
API搜索查询时,我在控制台中都会收到CORS错误。我在网上寻找解决方案,但直到现在都没有帮助。如何删除它?
这是错误:
Failed to load https://en.wikipedia.org//api/rest_v1/page/summary/india:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 404.