Coder
Coder

Reputation: 91

how to set secure flag for cookies inplay 2.1.0

I am using play 2.1.0. I want to set a secure flag for request headers. I tried using application.session.cookie.secure=true in application.conf with https host. But still the security flag is not set in header.

Did not find much on internet.

Upvotes: 0

Views: 643

Answers (1)

avik
avik

Reputation: 2708

I don't have a link to accompanying Play documentation to hand, but the configuration property you're looking for is:

session.secure=true

You can take a look in the source on the 2.1.x branch to see how Play uses this property.

Upvotes: 1

Related Questions