We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6adea commit 58c6abcCopy full SHA for 58c6abc
src/db/configuration/getConfiguration.ts
@@ -197,6 +197,12 @@ export const getConfiguration = async (): Promise<Config> => {
197
authDomain: "thirdweb.com",
198
authWalletEncryptedJson: await createAuthWalletEncryptedJson(),
199
});
200
+ } else if (!config.accessControlAllowOrigin) {
201
+ config = await updateConfiguration({
202
+ accessControlAllowOrigin: !!process.env.ACCESS_CONTROL_ALLOW_ORIGIN
203
+ ? process.env.ACCESS_CONTROL_ALLOW_ORIGIN
204
+ : mandatoryAllowedCorsUrls.join(","),
205
+ });
206
}
207
208
return withWalletConfig(config);
0 commit comments