We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected Behavior
CorsDsl has
CorsDsl
var configurationSource: CorsConfigurationSource? = null
similar to ServerCorsDsl
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 } } } }
The text was updated successfully, but these errors were encountered:
Thanks for reaching out @IvanPavlov1995.
Are you interested in submitting a pull request to add support for the configurationSource in the Kotlin DSL?
configurationSource
Sorry, something went wrong.
Yes, I would like to try to do that :)
Awesome @IvanPavlov1995! Feel free to reach out if you have any questions.
Extend CorsDsl with CorsConfigurationSource property
117c095
Issue: spring-projectsgh-9314
f4d78d0
Issue: gh-9314
Closed via f4d78d0
eleftherias
IvanPavlov1995
No branches or pull requests
Expected Behavior
CorsDsl
hassimilar 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:
The text was updated successfully, but these errors were encountered: