diff --git a/tailbone/templates/page.mako b/tailbone/templates/page.mako index 14c8b1a6..1dbd333b 100644 --- a/tailbone/templates/page.mako +++ b/tailbone/templates/page.mako @@ -35,7 +35,10 @@ methods: {} } - let ThisPageData = {} + let ThisPageData = { + ## TODO: should find a better way to handle CSRF token + csrftoken: ${json.dumps(request.session.get_csrf_token() or request.session.new_csrf_token())|n}, + }