-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
Fix compiler warnings and a minor bug #69
Conversation
5fc4826
to
aeee626
Compare
aeee626
to
63bc02c
Compare
63bc02c
to
a3be69a
Compare
a3be69a
to
6fc0f90
Compare
6fc0f90
to
bc95399
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jarkkoka)
spring-boot/src/main/kotlin/fi/hsl/jore4/mapmatching/config/WebSecurityConfig.kt
line 23 at r1 (raw file):
.sessionManagement { it.sessionCreationPolicy(SessionCreationPolicy.NEVER) } .csrf { it.disable() } .cors {}
CORS was not called in the old configuration. I don't think this empty call does anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @culka)
spring-boot/src/main/kotlin/fi/hsl/jore4/mapmatching/config/WebSecurityConfig.kt
line 23 at r1 (raw file):
Previously, culka (Teemu Mäkinen) wrote…
CORS was not called in the old configuration. I don't think this empty call does anything.
You're right. It does not affect anything. Basically, we are using the default CORS configuration. In other words, CORS is turned on even without this line.
I kind of made the usage of CORS explicit here since it is needed. There is a separate CORS configuration in WebConfig
class (under development
Spring profile).
Is it ok to leave it here?
bc95399
to
56c3eab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @jarkkoka)
spring-boot/src/main/kotlin/fi/hsl/jore4/mapmatching/config/WebSecurityConfig.kt
line 23 at r1 (raw file):
Previously, jarkkoka (Jarkko Kaura) wrote…
You're right. It does not affect anything. Basically, we are using the default CORS configuration. In other words, CORS is turned on even without this line.
I kind of made the usage of CORS explicit here since it is needed. There is a separate CORS configuration in
WebConfig
class (underdevelopment
Spring profile).Is it ok to leave it here?
Looks good!
WebSecurityConfigurerAdapter
This change is