Skip to content

Conversation

@Jusshersmith
Copy link
Contributor

Problem

Currently, upon refresh of the Group membership required error page it changes to a http: named cookie not present error page. Related issue: #94

Solution

We currently remove the CSRF token from the request after getting and assigning it to a new variable. If, further down the flow the request is found to be invalid for some reason (in this case, the user not being in the required groups) then the relevant error page is given. Upon refresh it tries to grab the CSRF token again however it's no longer part of the request, and so it errors in a less helpful and informative way.

Instead, only clear the CSRF token once we know the request has passed the various checks

jphines
jphines previously approved these changes Mar 28, 2019
@Jusshersmith Jusshersmith force-pushed the jusshersmith-group-membership-refresh-error branch from 2c8348f to 9f1fb4e Compare April 23, 2019 13:23
@Jusshersmith Jusshersmith merged commit d0e8e03 into master Apr 23, 2019
@Jusshersmith Jusshersmith deleted the jusshersmith-group-membership-refresh-error branch April 23, 2019 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants