-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
remove anyway broken "http" (Spring Boot) profile (fixes #514) #525
remove anyway broken "http" (Spring Boot) profile (fixes #514) #525
Conversation
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.
Hi @vorburger , I've commented some issue that will appear when used with the dev profile
SessionCookieConfig config = servletContext.getSessionCookieConfig(); | ||
config.setHttpOnly(true); | ||
config.setSecure(!environment.acceptsProfiles(Initializer.PROFILE_HTTP)); | ||
//force log initialization, then disable it | ||
config.setSecure(true); |
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.
this will not work in dev mode, should be
config.setSecure(environment.acceptsProfiles(Initializer.PROFILE_LIVE ))
config.setSecure(!environment.acceptsProfiles(PROFILE_HTTP)); | ||
// | ||
|
||
config.setSecure(true); |
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.
this will not work in dev mode, should be
config.setSecure(environment.acceptsProfiles(Initializer.PROFILE_LIVE ))
hi @vorburger , could you do the changes that I've requested or do you prefer that I do it ? |
@syjer I'll do it right now! 😄 |
@syjer done |
@cbellone @syjer as per #514