fix: add ALLOWED_ORIGINS to Better Auth trustedOrigins
This commit is contained in:
@@ -27,6 +27,7 @@ export const auth = betterAuth({
|
|||||||
},
|
},
|
||||||
trustedOrigins: [
|
trustedOrigins: [
|
||||||
process.env.APP_URL || 'http://localhost:3000',
|
process.env.APP_URL || 'http://localhost:3000',
|
||||||
|
...(process.env.ALLOWED_ORIGINS?.split(',') || []),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user