Merge remote-tracking branch 'Origin/main' into 20-calendar-system
This commit is contained in:
@@ -8,8 +8,8 @@ const app = express()
|
||||
app.use(morgan('dev'))
|
||||
|
||||
app.use(cors({
|
||||
origin: ['https://aj17thdev.nexuszone.net', 'http://localhost:5173'], // your SPA origins
|
||||
credentials: true,
|
||||
origin: [process.env.CLIENT_URL], // your SPA origins
|
||||
credentials: true
|
||||
}));
|
||||
|
||||
app.use(express.json())
|
||||
@@ -32,7 +32,7 @@ app.use(session({
|
||||
cookie: {
|
||||
httpOnly: true,
|
||||
sameSite: 'lax',
|
||||
domain: 'nexuszone.net'
|
||||
domain: process.env.CLIENT_DOMAIN
|
||||
}
|
||||
}));
|
||||
app.use(passport.authenticate('session'));
|
||||
|
||||
Reference in New Issue
Block a user