How do I set HttpOnly cookie in Django?

Viewed 14991

How do I set HttpOnly cookie in Django?

And is it worth the effort to prevent XSS?

3 Answers

Use

SESSION_COOKIE_HTTPONLY = True

in settings.py

Related