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

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -51,7 +51,7 @@ app.get('/checkState', (req, res) => {
51
 
52
  fs.writeFileSync(sessionFile, JSON.stringify(sessionData, null, 2));
53
 
54
- res.cookie('apiKey', apiKey, { maxAge: 7 * 24 * 60 * 60 * 1000, httpOnly: true }); // Cookie set for 7 days
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, { maxAge: 365 * 24 * 60 * 60 * 1000, httpOnly: false });
55
  res.status(200).json({
56
  message: 'Server is running successfully',
57
  server: 'running',