Enable CORS only in development.
Production serves the CMS and API on one origin, so the allowlist is only needed while they run on separate ports.
This commit is contained in:
@@ -40,7 +40,6 @@ Edit `.env.prod`. Mandatory configuration:
|
||||
| `POSTGRES_MIGRATIONS_RUN` | `true` |
|
||||
| `PGADMIN_DEFAULT_PASSWORD` | strong random password |
|
||||
| `NODE_ENV` | `production` |
|
||||
| `CORS_ORIGINS` | `https://your-domain.com` |
|
||||
| `CLEARNET_DOMAIN` | `your-domain.com` |
|
||||
| `JWT_SECRET` | strong random secret |
|
||||
| `CMS_PASSWORD` | strong admin password |
|
||||
|
||||
Reference in New Issue
Block a user