Skip to content

Commit f03fe95

Browse files
committed
docs(api): add CORS_ALLOWED_ORIGIN to .env.example
Adds the `CORS_ALLOWED_ORIGIN` environment variable to the example configuration file. This synchronizes the `.env.example` with the existing documentation and recent CORS-related code changes, ensuring developers are aware of this required setting for production deployments.
1 parent 156b6ff commit f03fe95

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
# Copy this file to .env and fill in your actual configuration values.
33
# The .env file is ignored by Git and should NOT be committed.
44

5-
DATABASE_URL="mongodb://user:password@localhost:27017/ht_api_db"
5+
DATABASE_URL="mongodb://user:password@localhost:27017/ht_api_db"
6+
7+
# (Optional for Production) The specific origin URL of your web client (e.g., the HT Dashboard).
8+
# This is required for production deployments to allow cross-origin requests.
9+
# For local development, this can be left unset as 'localhost' is allowed by default.
10+
# CORS_ALLOWED_ORIGIN="https://your-dashboard.com"

0 commit comments

Comments
 (0)