asked 2011-06-09 03:52:14 -0500
Anonymous
When I try to change the skin for Askbot, I get the following error:
Forbidden (403)
CSRF verification failed. Request aborted.
Reason given for failure:
CSRF token missing or incorrect. This puts me in a catch 22 situation whereby I need to change the skin to fix the error, but without fixing the error I can't change the skin. Can anyone tell me how to get round this?
Edit: I'm using the default skin. I don't know which templates are used in the settings interface. I would prefer a solution that didn't involve editing the default skin templates as those changes would be harder to maintain.
Do your templates have {% csrf_token %} inside each <form>?
I'd add them right after the <form> opening tag.
The template tag inserts a hidden field with a token to prevent cross site scripting.
edit maybe you have something missing in the settings.py? Sorry, somehow I assumed you've customized the skin and lost the csrf_tokens.
You'd need:
If CSRF_COOKIE_DOMAIN does not match yours, you'll see that error.
I had this problem as well. I figured out a csrf token missed at file askbot/deps/livesettings/templates/livesettings/group_settings.html.
No sure whether it's a bug. I added a {% csrf_token %} after <form> tag at line 26. Then this issue solved.
This 'CSRF verification failed' is still present in the current default skin (Nov 21st 2011), master branch. It prevents the user to log into the admin console, to change the skin. Is there any other way to change the skin? The one this site uses (default in the packaged version of askbot) does work...
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2011-06-09 03:52:14 -0500
Seen: 785 times
Last updated: Nov 29 '11
Cannot delete a user in the django admin UI : table follow_follow does not exist
user creation "screen name" vs "username" in admin page
HTML escaped incorrectly on Data entry and display rules admin page
email for comments: link missing a href [fixed]
"Related questions" section shows deleted questions?
Karma thresholds always reset to default when edited
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.