You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web-integrations/javascript-sdk/server-side-node/README.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,14 @@ The following table lists the environment variables that you must specify to sta
64
64
|`UID_CSTG_SERVER_PUBLIC_KEY`| Your UID2/EUID server public key for Client-Side Token Generation. **These are public credentials.**| Your assigned public key |
65
65
|`SESSION_KEY`| Used by the cookie-session middleware to encrypt the session data stored in cookies. | Any secure random string |
66
66
67
-
> **⚠️ Important**: Your CSTG subscription must be configured with `http://localhost:3034` as an allowed origin. Contact your UID2/EUID representative to add this origin to your subscription's allowed origins list.
67
+
### Optional Configuration
68
+
69
+
| Variable | Description | Example Values |
70
+
|:---------|:------------|:---------------|
71
+
|`UID_CSTG_ORIGIN`| The public URL where this application is deployed. Must match your CSTG subscription's allowed origins. Defaults to `http://localhost:PORT`. |`https://your-domain.com` (production)<br/>`http://localhost:3034` (default) |
72
+
|`PORT`| Port number for the server |`3034` (default) |
73
+
74
+
> **⚠️ Important**: Your CSTG subscription must be configured with an allowed origin that matches where your application is deployed. For production deployments, set `UID_CSTG_ORIGIN` to your application's public URL (e.g., `https://your-domain.com`). For local development, it automatically defaults to `http://localhost:PORT`.
0 commit comments