Spaces:
Paused
Paused
Update index.js
Browse files
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, {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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',
|