Don't validate tokens for each static asset URL
This commit is contained in:
@@ -375,6 +375,10 @@ def current_user():
|
|||||||
def setup_app(app):
|
def setup_app(app):
|
||||||
@app.before_request
|
@app.before_request
|
||||||
def validate_token_at_each_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()
|
validate_token()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user