docs: add local dev CORS instructions for frontend UI (#14501)

Co-authored-by: Manul <manulpatel@users.noreply.github.com>
This commit is contained in:
Manul Patel
2026-09-17 08:35:50 +00:00
committed by GitHub
co-authored by Manul
parent 40e10deb75
commit f14f282bf5
+9
View File
@@ -84,6 +84,15 @@ There are 2 areas of development.
### Server
Create a `.env` file in the root `openobserve` directory (if not already present) with the following content to allow the local Vite UI server to communicate with the backend without CORS errors:
```env
ZO_WEB_URL="http://localhost:8081"
ZO_CORS_ALLOWED_ORIGINS="http://localhost:3000, http://localhost:5173, http://localhost:8081"
```
Start the backend server:
```shell
ZO_ROOT_USER_EMAIL="root@example.com" ZO_ROOT_USER_PASSWORD="Complexpass#123" cargo run
```