Skip to content

Commit

Permalink
docs: fix BACKEND_CORS_ORIGINS examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sykp241095 committed Feb 24, 2025
1 parent a769bd2 commit 2aa1a17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ TIDB_SSL=true
EMBEDDING_MAX_TOKENS=2048

# JS Widgets: if you want to use JS widgets, you need to set the following variables to enable CORS.
# BACKEND_CORS_ORIGINS=['http://localhost:3000', 'https://your-domain.com']
# BACKEND_CORS_ORIGINS=https://your-domain.com
2 changes: 1 addition & 1 deletion frontend/app/src/pages/docs/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you want to embed the JavaScript snippet into your other website, you need to

```bash
# JS Widgets: if you want to use JS widgets, you need to set the following variables to enable CORS.
BACKEND_CORS_ORIGINS=['http://localhost:3000', 'https://your-domain.com']
BACKEND_CORS_ORIGINS=https://your-domain.com
```

* Step 2: Restart your service
Expand Down

0 comments on commit 2aa1a17

Please sign in to comment.