6👍
✅
SESSION_COOKIE_PATH = '/;HttpOnly'
A discussion can be found here: http://groups.google.com/group/django-users/browse_thread/thread/bd7f562d5b938054/a229073ae836f4d2?lnk=raot&pli=1
👤miku
- Django: Highlight current page in navbar
- Django – Override admin site's login form
- What's equivalent to Django's auto_now, auto_now_add in SQLAlchemy?
- Django admin, section without "model"?
- Django Serializer Nested Creation: How to avoid N+1 queries on relations
7👍
In Django 3.0 you can set the following cookies to True in your settings.py:
For instances, if
SESSION_COOKIE_HTTPONLY = True
Then your client-side JavaScript will not be able to access the session cookie.
- How to check whether virtualenv was created with '–no-site-packages'?
- How to reset virtualenv and pip?
- How to import my django app's models from command-line?
- Cookies across subdomains and hosts
Source:stackexchange.com