Closed Flo354 closed 5 years ago
In mode "quick & dirty", I made two modifications to make it work again temporary:
=> In JavaRouter.scala
protected def materializer: Materializer = play.api.Play.unsafeApplication.materializer
=> In CookieFunctions
return new Http.Cookie("JSESSIONID", value, null, "/", null, false, false, Http.Cookie.SameSite.STRICT);
I don't think it's the good way, since Play team recommends using dependency injection since play.allowGlobalApplication
is now "false" by default.
For play scala the above fix for CookieFunctions seems sufficient to make sockjs work with play 2.7.0
https://github.com/fdimuccio/play2-sockjs/pull/28
Refactored for DI.
I merged the PR and released 0.7.0.
Thank you for your effort.
Hi there :)
Play 2.7 is now stable (version 2.7.0). Will you update the module?
Thanks,