addCorsMappings

open fun addCorsMappings(registry: CorsRegistry)

Programmatically registers CORS rules for all controller endpoints. Uses properties to set allowed origins/methods/headers and whether credentials are allowed.