【发布时间】:2021-06-12 17:47:38
【问题描述】:
我无法从我的网关访问我的微服务 spring 管理仪表板,但它可以通过直接链接 (spring-dashboard) 链接工作。
新版本的spring boot admin dashboard出现了这个问题,看起来像是Cors起源问题:
Access to XMLHttpRequest at 'http://localhost:9091/applications' from origin 'http://localhost:8083' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
从网关捕获 Spring 仪表板
从它自己的链接捕获 Spring 仪表板
项目链接:https://github.com/SeifBh/spring-project
有什么想法吗?
【问题讨论】:
-
另一个相同问题的问题尚未解决stackoverflow.com/questions/67951506/…
标签: spring spring-boot netflix-eureka gateway spring-boot-admin