我最近将spring从1.4.3升级到1.5.3,开始获得相同值的两个响应头。
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.3.RELEASE</version>
当我用邮递员测试我的REST API时,我得到了正确的响应,但响应标头有多个。
Access-Control-Allow-Methods:GET, POST, DELETE, PUT
Access-Control-Allow-Methods:GET
Access-Control-Allow-Origin:https://tester.corp.xyz.com
Access-Control-Allow-Origin:https://git.corp.xyz.com
Access-Control-Allow-Headers: Content-Type, User-Agent, Host, ...
Access-Control-Allow-Headers: X-Requested-With, Content-Type . ..
任何帮助导致此错误的原因是什么?