File tree 3 files changed +2
-5
lines changed
nix/cardano-services/deployments
packages/cardano-services/src/Http
3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 28
28
SERVICE_NAMES = "handle" ;
29
29
NODE_ENV = values . cardano-services . nodeEnv ;
30
30
31
- ALLOWED_ORIGINS = values . backend . allowedOrigins ;
32
-
33
31
POSTGRES_POOL_MAX_HANDLE = "10" ;
34
32
POSTGRES_HOST_HANDLE = values . postgresName ;
35
33
POSTGRES_PORT_HANDLE = "5432" ;
Original file line number Diff line number Diff line change 31
31
TOKEN_METADATA_SERVER_URL = values . cardano-services . tokenMetadataServerUrl ;
32
32
NODE_ENV = values . cardano-services . nodeEnv ;
33
33
34
- ALLOWED_ORIGINS = values . backend . allowedOrigins ;
35
-
36
34
POSTGRES_POOL_MAX_STAKE_POOL = "10" ;
37
35
POSTGRES_HOST_STAKE_POOL = values . postgresName ;
38
36
POSTGRES_PORT_STAKE_POOL = "5432" ;
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ export class HttpServer extends RunnableModule {
86
86
protected async initializeImpl ( ) : Promise < void > {
87
87
this . app = express ( ) ;
88
88
89
- if ( this . #config. allowedOrigins ) {
89
+ this . logger . error ( 'Initializing HttpServer' , this . #config. allowedOrigins ) ;
90
+ if ( this . #config. allowedOrigins ?. length ) {
90
91
this . app . use ( cors ( corsOptions ( new Set ( this . #config. allowedOrigins ) ) ) ) ;
91
92
}
92
93
You can’t perform that action at this time.
0 commit comments