Expected Behavior

CorsDsl has

var configurationSource: CorsConfigurationSource? = null

similar to ServerCorsDsl

Current Behavior

There is no possibility to set configuration source for cors dsl configuration

Context

I was trying to migrate following code to security dsl:

http.cors().configurationSource { CorsConfiguration().applyPermitDefaultValues() }

but I can't set configuration source in dsl:

class SecurityConfig : WebSecurityConfigurerAdapter() {
    override fun configure(http: HttpSecurity) {
        http {
            cors {
                //can't set configuration source here
            }
        }
    }
}

Comment From: eleftherias

Thanks for reaching out @IvanPavlov1995.

Are you interested in submitting a pull request to add support for the configurationSource in the Kotlin DSL?

Comment From: IvanPavlov1995

Yes, I would like to try to do that :)

Comment From: eleftherias

Awesome @IvanPavlov1995! Feel free to reach out if you have any questions.

Comment From: eleftherias

Closed via f4d78d0