|
|
app.use(cors({ origin: true, credentials: true }))
|
|
app.use(cors({ origin: true, credentials: true }))
|
|
|
// app.use(csrf("XwHsY7X1spE#pdhgdGe9G$Cw&mF7n8=$", ['POST', 'PUT', 'DELETE'], ['/v1/auth/login', /\/v1\/auto\//i]))
|
|
// app.use(csrf("XwHsY7X1spE#pdhgdGe9G$Cw&mF7n8=$", ['POST', 'PUT', 'DELETE'], ['/v1/auth/login', /\/v1\/auto\//i]))
|
|
|
app.use(express.static(path.join(__dirname, 'public')))
|
|
app.use(express.static(path.join(__dirname, 'public')))
|