我想开发一个监控-网络应用程序,为不同的事情与AngularJS为前端。核心元素之一是展示Nexus-工件/存储库的概述。当我请求REST时,我得到以下错误:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:9090' is therefore not allowed access.
要修复此错误,我需要修改响应头以启用CORS。
如果有人熟悉这类问题,并能给我一个答案,那就太好了!