spring-framework / org.springframework.web.servlet.config.annotation / CorsRegistration / allowedMethods

allowedMethods

open fun allowedMethods(vararg methods: String): CorsRegistration

Set the HTTP methods to allow, e.g. "GET", "POST", etc.

The special value "*" allows all methods.

By default "simple" methods GET, HEAD, and POST are allowed.