Skip to content

Commit

Permalink
JSONP support in render_with is going away
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed May 17, 2023
1 parent 26521d7 commit ed395bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/baseframe/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def editorcss(subdomain: t.Optional[str] = None) -> Response:

@baseframe.route('/api/baseframe/1/csrf/refresh', subdomain='<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]]:
Expand Down

0 comments on commit ed395bb

Please sign in to comment.