mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-21 02:09:58 +00:00
feat!: send ERPNext requests as native JSON (use_json_request_body)
Opt ERPNext into native application/json request bodies (frappe#40237). Non-GET requests to erpnext.* endpoints now send args as a JSON body instead of form-encoded, per-key JSON-stringified values. Safe after the preceding commits hardened every whitelisted endpoint with frappe.parse_json.
This commit is contained in:
@@ -712,6 +712,10 @@ default_log_clearing_doctypes = {
|
||||
|
||||
export_python_type_annotations = True
|
||||
|
||||
# Send non-GET requests for ERPNext's endpoints as native `application/json`
|
||||
# bodies instead of form-encoded, per-key JSON-stringified values.
|
||||
use_json_request_body = True
|
||||
|
||||
fields_for_group_similar_items = ["qty", "amount"]
|
||||
|
||||
# Translation
|
||||
|
||||
Reference in New Issue
Block a user