chore(api): remove setting of expired remember_token cookie in after_request (#10582)

This commit is contained in:
-LAN- 2024-11-12 15:53:55 +08:00 committed by GitHub
parent b77628c458
commit 3e04c92ff9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,6 @@ if dify_config.TESTING:
@app.after_request
def after_request(response):
"""Add Version headers to the response."""
response.set_cookie("remember_token", "", expires=0)
response.headers.add("X-Version", dify_config.CURRENT_VERSION)
response.headers.add("X-Env", dify_config.DEPLOY_ENV)
return response