Want everyone on your software team to learn this? Free 14-day trial.
Train my team๐ SecureBank Repository
Internal code repository - API project
๐ฅ Fix CORS for local testing
dev-intern committed 2 hours ago
+origin: '*' // TODO: remove before prod
โ
Add transaction endpoint
senior-dev committed 1 day ago
CORS Configuration// CORS middleware configuration
app.use(
cors({
origin: true, // reflects ANY request origin -- TODO: remove before prod!!
credentials: true,
methods: ['GET', 'POST'],
allowedHeaders: ['Content-Type', 'Authorization'],
}),
);