Skip to content

Commit 2d38f88

Browse files
authored
Merge pull request #1594 from input-output-hk/release/be/0.31.1
Release/be/0.31.1
2 parents 9fc5583 + 10859ef commit 2d38f88

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

nix/cardano-services/deployments/handle.nix

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
SERVICE_NAMES = "handle";
2929
NODE_ENV = values.cardano-services.nodeEnv;
3030

31-
ALLOWED_ORIGINS = values.backend.allowedOrigins;
32-
3331
POSTGRES_POOL_MAX_HANDLE = "10";
3432
POSTGRES_HOST_HANDLE = values.postgresName;
3533
POSTGRES_PORT_HANDLE = "5432";

nix/cardano-services/deployments/stake-pool.nix

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
TOKEN_METADATA_SERVER_URL = values.cardano-services.tokenMetadataServerUrl;
3232
NODE_ENV = values.cardano-services.nodeEnv;
3333

34-
ALLOWED_ORIGINS = values.backend.allowedOrigins;
35-
3634
POSTGRES_POOL_MAX_STAKE_POOL = "10";
3735
POSTGRES_HOST_STAKE_POOL = values.postgresName;
3836
POSTGRES_PORT_STAKE_POOL = "5432";

packages/cardano-services/src/Http/HttpServer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export class HttpServer extends RunnableModule {
8686
protected async initializeImpl(): Promise<void> {
8787
this.app = express();
8888

89-
if (this.#config.allowedOrigins) {
89+
this.logger.error('Initializing HttpServer', this.#config.allowedOrigins);
90+
if (this.#config.allowedOrigins?.length) {
9091
this.app.use(cors(corsOptions(new Set(this.#config.allowedOrigins))));
9192
}
9293

0 commit comments

Comments
 (0)