feat: add PATCH method to allowed API methods
Added PATCH to the list of allowed HTTP methods in the API location block to support partial updates to resources. This aligns with RESTful API conventions and enables clients to modify specific fields without sending a full resource representation.
This commit is contained in:
@@ -58,7 +58,7 @@ server {
|
||||
# Защита от атак на API
|
||||
location /api/ {
|
||||
# Ограничение методов
|
||||
limit_except GET POST PUT DELETE OPTIONS {
|
||||
limit_except GET POST PUT PATCH DELETE OPTIONS {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user