Skip to content

Commit 79cf066

Browse files
authored
Add backwards compatibility for access control allow origin (#375)
1 parent 0cb0da0 commit 79cf066

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/db/configuration/getConfiguration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ export const getConfiguration = async (): Promise<Config> => {
185185
authDomain: "thirdweb.com",
186186
authWalletEncryptedJson: await createAuthWalletEncryptedJson(),
187187
minWalletBalance: "20000000000000000",
188-
accessControlAllowOrigin: mandatoryAllowedCorsUrls.join(","),
188+
accessControlAllowOrigin: !!process.env.ACCESS_CONTROL_ALLOW_ORIGIN
189+
? process.env.ACCESS_CONTROL_ALLOW_ORIGIN
190+
: mandatoryAllowedCorsUrls.join(","),
189191
},
190192
update: {},
191193
});

0 commit comments

Comments
 (0)