We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a43416 commit c27fb8cCopy full SHA for c27fb8c
src/index.js
@@ -27,7 +27,7 @@ async function handleRequest(event) {
27
let req = event.request;
28
29
// Filter requests that have unexpected methods.
30
- if (!["HEAD", "GET", "PURGE"].includes(req.method)) {
+ if (["POST", "PUT", "PATCH", "DELETE"].includes(req.method)) {
31
return new Response("This method is not allowed", {
32
status: 405,
33
});
0 commit comments