I am trying to send a POST request to a controller with JSON payload. Relevant request details are as follows.
Request URL:http://mag.local/index.php/shahal/test/saveJson Request Method:POST Content-Type:application/json
Rather than going to appropriate controller, it redirect the request to the dashboard. I assume its because Magento doesn't decode JSON string and read the
form_key from the request body. Is there any other workaround for this issue? Or is there a straightforward method for JSON requests in magento?
I cannot change the structure of the incoming requests.