feat: cors origins env var

This commit is contained in:
Florian Sylvain
2023-08-11 21:12:31 +02:00
parent d953a66f22
commit 318fd0f53a
2 changed files with 9 additions and 8 deletions
+5 -4
View File
@@ -18,10 +18,11 @@ TODO
### Environment variables
| Name | Type | Description | Comment |
|-------------|--------|---------------------------------------|-----------------------------------------|
| PORT | int | The port the API will use | required |
| ENVIRONMENT | string | The environment the API is running in | required, `development` or `production` |
| Name | Type | Description | Comment |
|----------------------|--------|---------------------------------------|-----------------------------------------|
| ENVIRONMENT | string | The environment the API is running in | required, `development` or `production` |
| PORT | int | The port the API will use | required |
| CORS_ALLOWED_ORIGINS | string | The allowed origins for CORS | required, semicolon separated list |
## API Usage