Skip to content

Commit 034490a

Browse files
authored
Update server.js
1 parent 6009b6b commit 034490a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notification-server/src/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ app.use(cors());
1818
app.use(helmet.hidePoweredBy());
1919
app.use(express.json({ extended: false }));
2020
app.use(cookieParser());
21-
app.use(csurf({ cookie: true, ignoreMethods: ['POST']}));
21+
app.use(csurf({ cookie: true, ignoreMethods: ['GET', 'POST']}));
2222

2323
app.get("/sse/notifications/:channelId", (req, res) => {
2424
const { channelId } = req.params;

0 commit comments

Comments
 (0)