我想使用AngularJS作为前端开发针对不同事物的Monitoring-WebApp。核心元素之一是Nexus工件/存储库的概述。当我请求REST-API时,出现以下错误:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:9090' is therefore not allowed access.
Run Code Online (Sandbox Code Playgroud)
要解决此错误,我需要修改响应标头以启用CORS。
如果有人熟悉这种类型的问题并可以给我答案,那就太好了!