Fix DNS allowlist not applying to POST requests.

This commit is contained in:
Catherine
2025-09-19 14:10:26 +00:00
parent df6ca018a5
commit 46d54503ee

View File

@@ -206,7 +206,7 @@ func AuthorizeRequest(r *http.Request) (*Authorization, error) {
}
// DNS allowlist gives authority to update but not delete.
if r.Method == http.MethodPut || r.Method == http.MethodPut {
if r.Method == http.MethodPut || r.Method == http.MethodPost {
auth, err = authorizeDNSAllowlist(r)
if err != nil && IsUnauthorized(err) {
causes = append(causes, err)