arabdullah commited on
Commit
904f5c5
·
verified ·
1 Parent(s): 80ccd95

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +5 -1
index.js CHANGED
@@ -51,7 +51,11 @@ app.get('/checkState', (req, res) => {
51
 
52
  fs.writeFileSync(sessionFile, JSON.stringify(sessionData, null, 2));
53
 
54
- res.cookie('apiKey', apiKey, { maxAge: 365 * 24 * 60 * 60 * 1000, httpOnly: false });
 
 
 
 
55
  res.status(200).json({
56
  message: 'Server is running successfully',
57
  server: 'running',
 
51
 
52
  fs.writeFileSync(sessionFile, JSON.stringify(sessionData, null, 2));
53
 
54
+ res.cookie('apiKey', apiKey, {
55
+ maxAge: 365 * 24 * 60 * 60 * 1000,
56
+ httpOnly: false,
57
+ sameSite: 'None'
58
+ });
59
  res.status(200).json({
60
  message: 'Server is running successfully',
61
  server: 'running',