[2.1.3 Java] PLAY_SESSION - how to remove HttpOnly

189 views
Skip to first unread message

Natalia C.

unread,
Aug 22, 2014, 5:04:30 PM8/22/14
to play-fr...@googlegroups.com
I am working with cross-domain requests and need to be able to send PLAY_SESSION cookies from browser back to the server. I did some research, and one of the possible solutions was to remove HttpOnly  attribute from the Set-Cookie header with PLAY_SESSION. I tried doing it from the application.config with session.httpOnly="false" but it didn't work. Any ideas how to make PLAY_SESSION cookies available in cross-domain requests?

Thanks.

Borut

unread,
Aug 27, 2014, 10:59:35 AM8/27/14
to play-fr...@googlegroups.com

Fetteni Lotfi

unread,
Aug 27, 2014, 11:26:45 AM8/27/14
to play-fr...@googlegroups.com
Thank you very much Borut for your helping.



On 27 August 2014 15:59, Borut <borut....@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Natalia C.

unread,
Aug 29, 2014, 5:07:43 PM8/29/14
to play-fr...@googlegroups.com
Thanks but I alleady have CORS implemented in my REST service and allow cross- domain requests. The issue arises when I need to access a value from my session object. Play framework implements session as a session cookie that gets passed between browser and REST service, so if the client is on the different domain, browser refuses to store cookie and pass it back to the server. I need to force browser to accept PLAY_SESSION cookie and include it with every request to the rest service on the different domain.
Reply all
Reply to author
Forward
0 new messages