mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 23:05:20 +00:00
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'.
This commit is contained in:
parent
1349bc47b1
commit
4b9b24ae78
1 changed files with 1 additions and 1 deletions
|
|
@ -1255,7 +1255,7 @@ def validate_cors_origin(origin):
|
||||||
# To test CORS_ALLOW_ORIGIN locally, you can set something like
|
# To test CORS_ALLOW_ORIGIN locally, you can set something like
|
||||||
# CORS_ALLOW_ORIGIN=http://localhost:5173;http://localhost:8080
|
# CORS_ALLOW_ORIGIN=http://localhost:5173;http://localhost:8080
|
||||||
# in your .env file depending on your frontend port, 5173 in this case.
|
# in your .env file depending on your frontend port, 5173 in this case.
|
||||||
CORS_ALLOW_ORIGIN = os.environ.get("CORS_ALLOW_ORIGIN", "*").split(";")
|
CORS_ALLOW_ORIGIN = os.environ.get("CORS_ALLOW_ORIGIN", "*;http://localhost:5173;http://localhost:8080").split(";")
|
||||||
|
|
||||||
if "*" in CORS_ALLOW_ORIGIN:
|
if "*" in CORS_ALLOW_ORIGIN:
|
||||||
log.warning(
|
log.warning(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue