Expected Behavior:
All sensitive cookies should have the secure flag set when WEBUI_SESSION_COOKIE_SECURE=true.
Actual Behavior:
The token cookie does not have the Secure flag set.
Environment
Open WebUI Version: v0.3.10
Reproduction Details
Confirmation:
I have read and followed all the instructions provided in the README.md.
I am on the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
Logs and Screenshots
Browser Console Logs:
N/A
Docker Container Logs:
N/A
Screenshots (if applicable):
Installation Method
Docker
Additional Information
N/A
Originally created by @mike-stewart on GitHub (Jul 31, 2024).
# Bug Report
## Description
**Bug Summary:**
The WEBUI_SESSION_COOKIE_SECURE environment variable sets the secure flag on the "oui-session" cookie, but not the "token" cookie.
Here it is set: https://github.com/open-webui/open-webui/blob/82079e644a291349926008adffe8fe2fc3b33566/backend/main.py#L2118-L2124
Here it is not set:
https://github.com/open-webui/open-webui/blob/82079e644a291349926008adffe8fe2fc3b33566/backend/main.py#L2243-L2247
https://github.com/open-webui/open-webui/blob/82079e644a291349926008adffe8fe2fc3b33566/backend/apps/webui/routers/auths.py#L59-L63
**Steps to Reproduce:**
Login with oauth.
**Expected Behavior:**
All sensitive cookies should have the secure flag set when `WEBUI_SESSION_COOKIE_SECURE=true`.
**Actual Behavior:**
The `token` cookie does not have the Secure flag set.
## Environment
- **Open WebUI Version:** v0.3.10
## Reproduction Details
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [x] I am on the latest version of both Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
## Logs and Screenshots
**Browser Console Logs:**
N/A
**Docker Container Logs:**
N/A
**Screenshots (if applicable):**

## Installation Method
Docker
## Additional Information
N/A
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @mike-stewart on GitHub (Jul 31, 2024).
Bug Report
Description
Bug Summary:
The WEBUI_SESSION_COOKIE_SECURE environment variable sets the secure flag on the "oui-session" cookie, but not the "token" cookie.
Here it is set: https://github.com/open-webui/open-webui/blob/82079e644a291349926008adffe8fe2fc3b33566/backend/main.py#L2118-L2124
Here it is not set:
https://github.com/open-webui/open-webui/blob/82079e644a291349926008adffe8fe2fc3b33566/backend/main.py#L2243-L2247
https://github.com/open-webui/open-webui/blob/82079e644a291349926008adffe8fe2fc3b33566/backend/apps/webui/routers/auths.py#L59-L63
Steps to Reproduce:
Login with oauth.
Expected Behavior:
All sensitive cookies should have the secure flag set when
WEBUI_SESSION_COOKIE_SECURE=true.Actual Behavior:
The
tokencookie does not have the Secure flag set.Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
N/A
Docker Container Logs:
N/A
Screenshots (if applicable):

Installation Method
Docker
Additional Information
N/A