Skip to content

Commit a870c73

Browse files
committed
fix: move cors origins
assuming that it only reads the first on the list
1 parent c0ac612 commit a870c73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/auth-server-api/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PORT=3004
33

44
# CORS Configuration (comma-separated origins)
5-
CORS_ORIGINS=http://localhost:3005,http://localhost:3003,http://localhost:3002,http://localhost:3000
5+
CORS_ORIGINS=http://localhost:3002,http://localhost:3003,http://localhost:3004,http://localhost:3005,http://localhost:3000
66

77
# Deployer Configuration (Private key with funds for deployment gas)
88
# For local development, use the Anvil rich account:

packages/auth-server-api/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ try {
3131
// Environment schema with optional contract addresses (can fall back to contracts.json)
3232
const envSchema = z.object({
3333
PORT: z.string().default("3004"),
34-
CORS_ORIGINS: z.string().default("http://localhost:3005,http://localhost:3003,http://localhost:3002,http://localhost:3000"),
34+
CORS_ORIGINS: z.string().default("http://localhost:3002,http://localhost:3003,http://localhost:3004,http://localhost:3005,http://localhost:3000"),
3535
DEPLOYER_PRIVATE_KEY: z.string().default("0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"),
3636
RPC_URL: z.string().default("http://127.0.0.1:8545"),
3737
BUNDLER_URL: z.string().default("http://127.0.0.1:4337"),

0 commit comments

Comments
 (0)