if current_app.static_url_path is not None and request.path.startswith(
    current_app.static_url_path):
    _request_ctx_stack.top.user = self.anonymous_user()
Flask-login with static user always yielding 401- Unauthorized