@Override
    protected CorsConfiguration initCorsConfiguration(@Nonnull final Object handler,
                                                      @Nonnull final Method method,
                                                      @Nonnull final RequestMappingInfo mapping) {
        return this.corsConfiguration;
    }
This is {@link RestActuatorEndpointHandlerMapping}.

@author Misagh Moayyed
@since 7.1.0
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/spring/RestActuatorEndpointHandlerMapping.java