Skip to content

Commit

Permalink
Revert too restrictive CORS for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Nov 10, 2024
1 parent 00b8e50 commit 646b9de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ app.whenReady().then(() => {
// Add security headers
server.use((req, res, next) => {
res.setHeader('X-Content-Type-Options', 'nosniff');
res.setHeader('X-Frame-Options', 'DENY');
// res.setHeader('X-Frame-Options', 'SAMEORIGIN');
res.setHeader('X-XSS-Protection', '1; mode=block');
// We already set the CSP in the HTML file and in the SErviceWorker...
// res.setHeader('Content-Security-Policy', "default-src 'self'");
Expand All @@ -237,7 +237,7 @@ app.whenReady().then(() => {
app.quit();
return;
}
expressServer = server.listen(port, '127.0.0.1', () => {
expressServer = server.listen(port, () => {
console.log(`Server running on port ${port}`);
// Create the new window
createWindow();
Expand Down

0 comments on commit 646b9de

Please sign in to comment.