django-markdown-editor icon indicating copy to clipboard operation
django-markdown-editor copied to clipboard

Preview fails due to missing CSRF token

Open bendavis78 opened this issue 3 years ago • 1 comments

When selecting preview tab in admin, it says "Nothing to preview". The console output shows the following::

WARNING django.security.csrf: Forbidden (CSRF token missing or incorrect.): /martor/markdownify/ 
  • Django version: 2.2.12
  • Martor version: 1.6.13

bendavis78 avatar Jun 22 '22 17:06 bendavis78

hello @bendavis78, please add this in your settings:

CSRF_COOKIE_HTTPONLY = False

agusmakmun avatar Aug 27 '22 06:08 agusmakmun