mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #13231] issue: CORS issue with static file #55522
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhangzunke on GitHub (Apr 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13231
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.6.5
Ollama Version (if applicable)
No response
Operating System
Ubuntu 24.04.1 LTS in window sub system
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The static file can be accessed by frontend site.
Actual Behavior
Currently, the static files were blocked by CORS
Steps to Reproduce
1.Go to http://localhost:5173/
2.Open the inspect of page
Logs & Screenshots
Additional Information
I know someone has fixed this issue, could pls merge the code into the main branch since I am not only one who has encountered this issue.
https://github.com/open-webui/open-webui/pull/7458
@athoik commented on GitHub (Apr 26, 2025):
Hi,
You will not have the issue if you serve everything from the backend.
Step 1. Build the frontend (it will create a build folder)
Step 2. Build backend
Step 3. Use port http://localhost:8080 (instead of 5173)
Now everthing will served using port 8080, so you will get no CORS errors.