diff --git a/pillar/api/utils/authentication.py b/pillar/api/utils/authentication.py index e223a79e..51151adc 100644 --- a/pillar/api/utils/authentication.py +++ b/pillar/api/utils/authentication.py @@ -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()