【发布时间】:2016-06-26 22:23:17
【问题描述】:
我有支持 cors 的 Spring Boot Actuator,它在 application.properties 中配置如下:
management.context-path=/management
endpoints.cors.allowed-origins=*
endpoints.cors.allowed-methods=GET,OPTIONS
endpoints.cors.allowed-headers=*
当我尝试使用任何标头向此路径发送请求时,我总是收到此错误
org.springframework.web.servlet.PageNotFound - Request method 'OPTIONS' not supported
GET 请求工作正常。我做错了什么?
【问题讨论】:
标签: cors spring-boot-actuator http-options-method