Applied configurable CORS policy to API

This commit is contained in:
2026-09-15 07:29:58 +02:00
parent f4a1064003
commit b239c402fa
3 changed files with 24 additions and 2 deletions
+5
View File
@@ -13,6 +13,11 @@ services:
- ForwardedHeadersConfiguration__Enabled=true
- ForwardedHeadersConfiguration__AllowAll=true
- ForwardedHeadersConfiguration__ForwardLimit=1
# CORS Overrides
- CorsOrigins__0=${CORS_ORIGIN_CONSOLE:-https://console.ifri.khongisa.co.za}
- CorsOrigins__1=${CORS_ORIGIN_API:-https://api.ifri.khongisa.co.za}
- CorsOrigins__2=${CORS_ORIGIN_LOCAL:-https://localhost:7208}
# Postgres Database Overrides
- ConnectionStrings__PfmDatabase=Server=${POSTGRES_HOST:-192.168.1.170};Port=${POSTGRES_PORT:-5432};Database=${POSTGRES_DB:-pfm};User Id=${POSTGRES_USER:-pfm-user};Password=${POSTGRES_PASSWORD};