mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 03:03:27 -06:00
[PR #13253] [MERGED] fix: The value of the 'Access-Control-Allow-Origin' header in the res… #38765
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13253
Author: @noexcs
Created: 4/27/2025
Status: ✅ Merged
Merged: 4/28/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
4b9b24afix: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+1 -1)📄 Description
fix: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.
Changelog Entry
Description
When the user does not configure anything, the default CORS configuration on the backend is "
*", and the frontend's credentials mode is set to 'include'.This leads to a CORS issue:
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.As a result, first-time users encounter difficulties in normal usage on their localhost.
To resolve this, I have added http://localhost:5173;http://localhost:8080 to the default
CORS_ALLOW_ORIGIN.Fixed
The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'issue, when the user does not configure anything.Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.