digitalpoint
Well-known member
- Affected version
- 2.2.12
Ran into this for something else, but it's also the same reason for this bug report:
XF.KeepAlive.refresh() updates XF.config.csrf and hidden input fields containing csrf, but it does not update URLs with t={csrf_token}. Things like Logout button, the advanced cookie consent buttons, language selector, style selector and a few other things.
XF.KeepAlive is an anonymous function so there wasn't a real way to extend it to fix it for now. However I did come up with an extremely hacky way to do it (using JavaScript Proxy() to monitor for XF.config.csrf changes).
Either way, if XenForo is supposed to update csrf with XF.KeepAlive.refresh(), it should do it in all the places, not just some.
Logout bug when Guest caching is enabled
The issue described here https://xenforo.com/community/threads/guest-page-caching.164816/ has been existing for a long time with no resolution .. I tried doing some troubleshooting to see the reason behind it because it was really annoying , I found the bug is very simple at method...
xenforo.com
XF.KeepAlive.refresh() updates XF.config.csrf and hidden input fields containing csrf, but it does not update URLs with t={csrf_token}. Things like Logout button, the advanced cookie consent buttons, language selector, style selector and a few other things.
XF.KeepAlive is an anonymous function so there wasn't a real way to extend it to fix it for now. However I did come up with an extremely hacky way to do it (using JavaScript Proxy() to monitor for XF.config.csrf changes).
Either way, if XenForo is supposed to update csrf with XF.KeepAlive.refresh(), it should do it in all the places, not just some.