diff --git a/src/index.js b/src/index.js index 16fba05..4a5bfc4 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ async function handleRequest(event) { let req = event.request; // Filter requests that have unexpected methods. - if (!["HEAD", "GET"].includes(req.method)) { + if (!["HEAD", "GET", "PURGE"].includes(req.method)) { return new Response("This method is not allowed", { status: 405, });