Open
Description
When sending data
JSON.stringify({
...
form_key: form_key
...
})
in 'mage/storage'.post(url, data) to the REST endpoint
the form_key isn't found because it is searching for 'form_key=' and not 'form_key'
and it is adding to the encoded json string '{}'&form_key=xyz
, what makes an exception in
[64 line] \Magento\Framework\Webapi\Rest\Request\Deserializer\decodedBody
To bypass this I have added in data
JSON.stringify({
...
'form_key=': form_key
...
})
is there a reason why in
lib/web/mage/backend/bootstrap.js#L46 it is comparing 'form_key=' and not just 'form_key'?
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchIssue related to Developer Experience and needs help with Triage to Confirm or Reject it