🔧 Вывел URL фронтенда для CORS в .env

This commit is contained in:
2021-03-28 20:22:02 +03:00
parent 33580708d0
commit 3686663543
2 changed files with 2 additions and 2 deletions

View File

@@ -8,8 +8,7 @@ require('dotenv').config()
app.use(cors({
origin: [
'http://localhost:8080',
'https://localhost:8080'
process.env.FRONTEND
],
credentials: true,
exposedHeaders: ['set-cookie']