Skip to content

Instantly share code, notes, and snippets.

@killthekitten
Last active October 6, 2021 17:12
Show Gist options
  • Save killthekitten/b9a7b11530c44e788a31ec53e5ef0dad to your computer and use it in GitHub Desktop.
Save killthekitten/b9a7b11530c44e788a31ec53e5ef0dad to your computer and use it in GitHub Desktop.
Persistent CSRF token cookie
@killthekitten
Copy link
Author

@rshipp thanks for this! Did this workaround resolve your issue with CSRF though?

@rshipp
Copy link

rshipp commented Oct 6, 2021

It did! We just got the invalid base64 crash until we also fixed the urlsafe issue. Now our forms are all working perfectly across rails server restarts, which was failing without this csrf cookie fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment