-
Notifications
You must be signed in to change notification settings - Fork 308
tip buttons broken #91
Comments
I'm not able to reproduce locally. It's something in the cookie interaction. I wouldn't rule out a bug in Aspen's cookie implementation. |
When I first hit a page I see:
Then when I click "GitHub" and land back on the page I have:
Then when I click a tip button I get this from tip.json:
|
Locally when I first hit a page I see:
Then when I land back at the page I get:
When I tip I get this from tip.json:
|
So the session is cleared somehow when I hit tip.json. This happens in production but not locally. Does the server receive the session token and fail to set it again on the way out? Or does the server not receive the session token? |
It happens in production from all three of these pages:
|
It only happens for tip.json. I can otherwise browse around the site and not have my session dropped. Oh! I bet it's the is_secure check. That's an environmental difference. |
In porting crsf.py from Django I neglected to clean up an API call for accessing the Referer header.
Let's see if that does it ... |
Okay, appears to have worked. |
Phew! |
Scrappy not-even-really-a-startup could use some best practices. :-/ |
This is a regression introduced with #88.
steps
expected
Tip changes.
actual
403 from tip.json
The text was updated successfully, but these errors were encountered: