From 4a516329e5303b835be3f82dd85e70f8f5a9420e Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 29 Jun 2021 17:49:13 -0500 Subject: [PATCH] Remove POST from allowed HTTP methods on api server --- api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/index.js b/api/index.js index 9d3f517..6d427ea 100644 --- a/api/index.js +++ b/api/index.js @@ -105,7 +105,7 @@ wss.on("error", (err) => { const httpServer = http.createServer(); httpServer.on("request", async (req, res) => { - if (req.method !== "GET" && req.method !== "POST") { + if (req.method !== "GET") { res.statusCode = 405; return res.end("405 Method Not Allowed"); }