I have Spring Boot Actuator with cors support, which configurated in application.properties like this:
management.context-path=/management
endpoints.cors.allowed-origins=*
endpoints.cors.allowed-methods=GET,OPTIONS
endpoints.cors.allowed-headers=*
When i try to send request to this path with any headers I always get this error
org.springframework.web.servlet.PageNotFound - Request method 'OPTIONS' not supported
GET request works fine. What I am doing wrong ?