Theme
Version
GitHub PyPI Discord
On this page

Unreleased

Added

  • You can now set the page's CSRF token once with Citry.configure({csrf: {...}}). Event calls and $i18n message requests both read it.

Changed

  • State tokens in the default signed storage now use a key that Citry derives from your secret for this one use, so values that other code signs with the same secret (such as Django's SECRET_KEY) cannot be used as State. Signed tokens from earlier versions stop working when you upgrade: an open page asks the visitor to reload on its next event call. During a rolling deploy, old and new processes reject each other's signed tokens until every process runs the new version.

Fixes

  • $i18n.switchLocale() no longer fails with status 403 on Django: the request that loads the new locale's messages now sends the page's CSRF token, the same way event calls do.
Citry version: 0.7.0