question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add plugin from Text Editor response CSRF Token error, page cache is false

See original GitHub issue

Using django-cms 3.4.0, Text CKEditor 3.2.1 and Django 1.9.10

When I want to add a plugin from the Text editor, after submit the form it response “CSRF verification failed.” I’m not using cache and also in my settings I have CMS_PAGE_CACHE = False

I inspected the elements and the token saved in the cookies and the one in the html iframe are the same, so I assume that It have the correct csrf token.

Also I have already tried this solution but it didn’t worked for me.

In my localhost it works with no problem, but in my staging server it isn’t working, and the only differences in my settings are the database they are refering to, also the both have DEBUG = True.

I have read some issues where the solution is the cache, but I think it’s not my case.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
CoffiDevcommented, Nov 1, 2016

A lot of thanks! Disabling django-debug-toolbar in my staging server solved the problem.

0reactions
czpythoncommented, Nov 1, 2016

@CoffiDev I’m not sure but it might be that you have django-debug-toolbar in your environment and its doing something strange.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add plugin from Text Editor response CSRF Token error, page ...
When I want to add a plugin from the Text editor, after submit the form it response "CSRF verification failed." ... I inspected...
Read more >
“Wrong CSRF token!” | WordPress.org
Today I've noticed, that I am unable to login to my site with User Registration plugin enabled. I get an error “wrong csrf...
Read more >
CSRF detected! - GetSimple CMS
Hello, I experimented something that I want to share with you. I was editing a page, and when I clicked on "Save the...
Read more >
Laravel csrf token mismatch for ajax POST Request
The best way to solve this problem "X-CSRF-TOKEN" is to add the following code to your main layout, and continue making your ajax...
Read more >
Migrating to Apollo Server 4 - Apollo GraphQL Docs
This plugin installs the unmaintained GraphQL Playground project as a landing page and is provided for compatibility with Apollo Server 2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found