Login succeeded, but redirect failed, Err code 401 #351

Closed
opened 2026-02-21 17:26:53 -05:00 by yindo · 5 comments
Owner

Originally created by @conghaoyuan on GitHub (Aug 6, 2023).

deploy:

docker:

  • nginx
  • web
  • postgres
  • redis
  • weaviate

and deploy api service locally.

cd dify/api
........
flask run --host 0.0.0.0 --port 5001 --debug

run

image

and login succeeded, redirect failed .

image
Originally created by @conghaoyuan on GitHub (Aug 6, 2023). ### deploy: **docker:** - nginx - web - postgres - redis - weaviate and deploy `api` service locally. ``` cd dify/api ........ flask run --host 0.0.0.0 --port 5001 --debug ``` ### run <img width="1203" alt="image" src="https://github.com/langgenius/dify/assets/12544104/4098c25e-158b-49ec-9ef4-6c9ed2f6d9e3"> and login succeeded, redirect failed . <img width="615" alt="image" src="https://github.com/langgenius/dify/assets/12544104/c4dd7704-6daf-4641-ba4f-b5572f742473">
yindo closed this issue 2026-02-21 17:26:53 -05:00
Author
Owner

@conghaoyuan commented on GitHub (Aug 7, 2023):

COOKIE_HTTPONLY=true
COOKIE_SAMESITE=Lax
COOKIE_SECURE=false

resolved

@conghaoyuan commented on GitHub (Aug 7, 2023): COOKIE_HTTPONLY=true COOKIE_SAMESITE=Lax COOKIE_SECURE=false resolved
Author
Owner

@conghaoyuan commented on GitHub (Aug 7, 2023):

resolved

@conghaoyuan commented on GitHub (Aug 7, 2023): resolved
Author
Owner

@weirhp commented on GitHub (Aug 15, 2023):

COOKIE_HTTPONLY=true COOKIE_SAMESITE=Lax COOKIE_SECURE=false

resolved

where add the config ?

@weirhp commented on GitHub (Aug 15, 2023): > COOKIE_HTTPONLY=true COOKIE_SAMESITE=Lax COOKIE_SECURE=false > > resolved where add the config ?
Author
Owner

@conghaoyuan commented on GitHub (Aug 16, 2023):

copy .env.example to .env
set the parameter in .env file

@conghaoyuan commented on GitHub (Aug 16, 2023): > copy .env.example to .env set the parameter in .env file
Author
Owner

@linphy commented on GitHub (Sep 1, 2023):

why?

@linphy commented on GitHub (Sep 1, 2023): why?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#351