skip_csrf(datasette, scope) plugin hook, refs #1377

This commit is contained in:
Simon Willison 2021-06-23 15:39:52 -07:00
commit b1fd24ac9f
8 changed files with 68 additions and 1 deletions

View file

@ -348,3 +348,8 @@ def database_actions(datasette, database, actor, request):
"label": label,
}
]
@hookimpl
def skip_csrf(scope):
return scope["path"] == "/skip-csrf"