From ed395bbdd6a210a761e82400ddad88eed2d1ca12 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Thu, 18 May 2023 01:36:19 +0530 Subject: [PATCH] JSONP support in render_with is going away --- src/baseframe/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/baseframe/views.py b/src/baseframe/views.py index 73233983..a1563991 100644 --- a/src/baseframe/views.py +++ b/src/baseframe/views.py @@ -226,7 +226,7 @@ def editorcss(subdomain: t.Optional[str] = None) -> Response: @baseframe.route('/api/baseframe/1/csrf/refresh', subdomain='') @baseframe.route('/api/baseframe/1/csrf/refresh', defaults={'subdomain': None}) -@render_with({'text/plain': lambda r: r['csrf_token']}, json=True, jsonp=False) +@render_with({'text/plain': lambda r: r['csrf_token']}, json=True) def csrf_refresh( # TODO: Need ReturnRenderWith here subdomain: t.Optional[str] = None, ) -> t.Tuple[t.Dict[str, t.Any], int, t.Dict[str, str]]: