djangocms-text-ckeditor icon indicating copy to clipboard operation
djangocms-text-ckeditor copied to clipboard

CSRF Validation Error

Open scnerd opened this issue 4 years ago • 2 comments

Just spun up a brand new project based on django-cookiecutter, then followed the process for manually integrating Django CMS. When I am in the ckeditor and creating or modifying a page, I'm trying to add a link plugin to cross-link between my internal pages, but I get a CSRF validation error when trying to finalize that plugin addition (looks like the POST that's failing is against /admin/cms/page/add-plugin/).

Error (from server logs): Forbidden (CSRF token missing or incorrect.): /admin/cms/page/add-plugin/

All package versions:

Package Name Version
Django   3.0.5
Python   3.8.2
allauth Allauth 0.41.0.final.0
cms django CMS 3.7.2
crispy_forms Crispy_Forms 1.9.0
debug_toolbar Debug Toolbar 2.2
django_celery_beat Periodic Tasks 2.0.0
django_extensions Django_Extensions 2.2.9
djangocms_admin_style Djangocms_Admin_Style 1.5.0
djangocms_file Djangocms_File 2.4.0
djangocms_link Djangocms_Link 2.6.0
djangocms_picture Djangocms_Picture 2.4.0
djangocms_style Djangocms_Style 2.3.0
djangocms_text_ckeditor django CMS Text CKEditor 3.9.0
djangocms_video Djangocms_Video 2.3.0
easy_thumbnails Easy_Thumbnails <module 'easy_thumbnails.get_version' from '/usr/local/lib/python3.8/site-packages/easy_thumbnails/get_version.py'>
filer Filer 1.7.1
mptt mptt 0.11.0
sekizai Sekizai 1.1.0
treebeard Treebeard 4.3.1

scnerd avatar Apr 30 '20 18:04 scnerd

Upon further exploration, this issue only occurs when I use the "CMS Plugins" drop-down from within the ckeditor modal. I can create a link just fine if I create it from the page editor sidebar, but that doesn't allow me to work the link into the rest of my nicely formatted text.

scnerd avatar Apr 30 '20 20:04 scnerd

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 28 '22 15:07 stale[bot]

This will now be closed due to inactivity, but feel free to reopen it.

stale[bot] avatar Aug 30 '22 17:08 stale[bot]