【发布时间】:2016-10-18 02:54:53
【问题描述】:
图中swagger请求使用主机和端口,所以浏览器控制台XMLHttpRequest cannot load http://115.159.22.159:9001/bp/api/v1/user/1. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://twogoods.cc' is therefore not allowed access.
如何解决?
【问题讨论】:
标签: spring-boot swagger swagger-ui swagger-2.0