为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

'400 Bad CSRF Token' when I try to log in to Reddit

  • 5 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 RandomTroll

more options

The last 2 days, when I've tried to log in to my account at reddit, it returns:

400 Bad CSRF Token

Access is denied. This server can not verify that your cross-site request forgery token belongs to your login session. Either you supplied the wrong cross-site request forgery token or your session no longer exists. This may be due to session timeout or because browser is not supplying the credentials required, as can happen when the browser has cookies turned off.

check_csrf_token(): Invalid token

I have a subreddit to moderate, so I'm using Opera for that. I'd rather use Firefox. It happens in safe mode too.

The last 2 days, when I've tried to log in to my account at reddit, it returns: 400 Bad CSRF Token Access is denied. This server can not verify that your cross-site request forgery token belongs to your login session. Either you supplied the wrong cross-site request forgery token or your session no longer exists. This may be due to session timeout or because browser is not supplying the credentials required, as can happen when the browser has cookies turned off. check_csrf_token(): Invalid token I have a subreddit to moderate, so I'm using Opera for that. I'd rather use Firefox. It happens in safe mode too.

所有回复 (5)

more options

Have you tried in safe mode and can you check to see if any 3rd party cookies are being blocked? see screenshot

more options

As I wrote in my original message, it happens in safe mode too. Cookies are enabled anyway.

more options

You can try these steps in case of issues with webpages:

You can reload webpage(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • hold down the Shift key and left-click the Reload button
  • press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • press "Command + Shift + R" (Mac)

Clear the Cache and remove the Cookies for websites that cause problems via the "3-bar" Firefox menu button (Options/Preferences).

"Remove the Cookies" for websites that cause problems:

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data: "Manage Data"

"Clear the Cache":

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data -> Clear Data -> Cached Web Content: Clear

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration or userChrome.css is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Themes
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window
more options

How about that screenshot similar to mine?

more options

I already reloaded, cleared the cache and history, tried in safe mode, have always used the default theme, accept all cookies - I tried all these BEFORE I asked here. I notice someone else @reddit has the same problem, though s/he/it doesn't specify browser. I notice the coincidence with decreased bandwidth. I can log in if I use old.reddit.com