django-cms / djangocms-text-ckeditor

Text Plugin for django CMS using CKEditor 4
https://www.django-cms.org/en/repositories-plugins/
BSD 3-Clause "New" or "Revised" License
167 stars 185 forks source link

CSRF Validation Error #523

Closed scnerd closed 2 years ago

scnerd commented 4 years ago

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 commented 4 years ago

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.

stale[bot] commented 2 years ago

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] commented 2 years ago

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