Skip to content

Commit

Permalink
update cors again
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed Oct 13, 2023
1 parent 3e6da3c commit 1682a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const SQLiteStore = connectSqlite3(session);
const app = express();

const corsOptions = {
origin: 'https://cvapps.net', // Replace with your frontend domain, e.g., 'https://cvapps.net'
origin: 'https://*.cvapps.net', // Replace with your frontend domain, e.g., 'https://cvapps.net'
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true, // Allow credentials (cookies)
};
Expand All @@ -36,7 +36,7 @@ app.use(
saveUninitialized: false,
cookie: {
maxAge: 1800000, // Set the session timeout to 30 minutes (in milliseconds) 1800000
// domain: 'cvapps.net',
domain: '.cvapps.net',
},
})
);
Expand Down

0 comments on commit 1682a61

Please sign in to comment.