Don't validate tokens for each static asset URL
This commit is contained in:
parent
2bce52e189
commit
d9d3b73070
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user