Originally created by @zhangzunke on GitHub (Apr 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13231
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### 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
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using 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.
- [x] I have listed steps to reproduce the bug in detail.
### 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
GiteaMirror
added the bug label 2026-05-25 04:45:54 -05:00
Now everthing will served using port 8080, so you will get no CORS errors.
<!-- gh-comment-id:2831918081 -->
@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)
```
cd open-webui
npm install
NODE_OPTIONS="--max-old-space-size=8192" npm run build
```
Step 2. Build backend
```
cd backend
conda activate open-webui
pip install -r requirements.txt -U
sh dev.sh
```
Step 3. Use port http://localhost:8080 (instead of 5173)
Now everthing will served using port 8080, so you will get no CORS errors.
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 @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.