Don't validate tokens for each static asset URL

This commit is contained in:
Anna Sirota 2021-03-19 10:28:28 +01:00
parent 2bce52e189
commit d9d3b73070

View File

@ -375,6 +375,10 @@ def current_user():
def setup_app(app):
@app.before_request
def validate_token_at_each_request():
# Skip token validation if this is a static asset
# to avoid spamming Blender ID for no good reason
if request.path.startswith('/static/'):
return
validate_token()