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.

CSRF error when adding activity

See original GitHub issue

When I try to create a new activity, after filling the fields and pressing the ‘Submit’ button, the error ‘CSRF Failed: CSRF cookie not set.’ is displayed.

I tried to execute the same procedure on production environment (speakerfight.com) and got the same error.

Exact steps to reproduce:

  1. Login into speakerfight
  2. Click New Event
  3. Fill the form and submit
  4. Click Create Schedule
  5. Cllick Add Activity
  6. Fill the form and submit

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
heliomeiralinscommented, Oct 20, 2016

After #182 , we realized that CsrfViewMiddleware is disabled.

This bug happens because DRF is not ignoring the CSRF token check.

Should we enable the CsrfViewMiddleware?

0reactions
heliomeiralinscommented, Oct 11, 2017

@mazulo , did you replicate this issue? i believe this should be solved by now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

csrf error in django - python - Stack Overflow
I was having the exact same issue - and Blue Peppers' answer got me on the right track. Adding a RequestContext to your...
Read more >
CSRF token error messages - Todoist
This error message means that your browser couldn't create a secure cookie, or couldn't access that cookie to authorize your login. This can...
Read more >
Cross Site Request Forgery (CSRF) - OWASP Foundation
Cross-Site Request Forgery (CSRF) is an attack that forces an end user to execute unwanted actions on a web application in which they're...
Read more >
While using TOKEN I am getting CSRF errors when trying to ...
One curious bit of info, I just noticed that when I do use the tc-csrf-token parameter to pass the request, the error goes...
Read more >
A missing or invalid CSRF token was found? - Forums - IBM
In the qradar.error logs following errors are generating for this activity. Feb 1 10:24:29 x.x.x.x [tomcat] [abc@y.y.y.y (9276) ...
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