Josh Gibson
Josh Gibson

Reputation: 22948

Is there a way to flag cookies as HttpOnly in Pylons?

I can't find any documentation on the web about how to do this. I think its probably possible to send some sort of custom HTTP header response, but it seems kind of lame to do that if there is a more canonical way.

Upvotes: 0

Views: 154

Answers (1)

Alex Martelli
Alex Martelli

Reputation: 882093

theresponse.set_cookie(..., httponly=True, ...)

Upvotes: 1

Related Questions