Skip to content

Don't blocklist GET requests, instead allowlist POST requests#19

Open
mhagander wants to merge 2 commits into
PGBuildFarm:mainfrom
mhagander:allowlist_not_blocklist
Open

Don't blocklist GET requests, instead allowlist POST requests#19
mhagander wants to merge 2 commits into
PGBuildFarm:mainfrom
mhagander:allowlist_not_blocklist

Conversation

@mhagander
Copy link
Copy Markdown
Contributor

There are many more request types than GET and POST, and there is no reason to accept them.

(Not a high priority one, but it just flags as bad to do blocking of a single one when we really don't want the others, so good for some hygiene)

mhagander added 2 commits June 1, 2026 13:55
There are many more request types than GET and POST, and there is no
reason to accept them.
HTTP has a standard status code when using the wrong method, so use
that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant