feat: add CORS support with user-sourced trusted origins from .env
All checks were successful
Update changelog / changelog (push) Successful in 24s

This commit is contained in:
2025-12-30 17:41:35 +01:00
parent 7abf5bad09
commit 6ad9c6fd61
5 changed files with 88 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
# Server config
ACCESS_TOKEN_PRIVATE_KEY=CHANGE_ME_TO_SOMETHING_RANDOM
ACCESS_TOKEN_PRIVATE_KEY=CHANGE_ME_TO_SOMETHING_RANDOM # Used to generate user tokens. Make sure this is pretty random.
TRUSTED_ORIGINS=http://localhost:6568 # Comma separated list of trusted origins. Make sure to include your PUBLIC_URL here.
# TypeORM specific
# Please make sure these match with docker-compose.yml, or your own postgres server.