PHP “php://input” vs $_POST

The reason is that php://input returns all the raw data after the HTTP-headers of the request, regardless of the content type. The PHP superglobal $_POST, only is supposed to wrap data that is either application/x-www-form-urlencoded (standard content type for simple form-posts) or multipart/form-data (mostly used for file uploads) This is because these are the only content types that must be supported by user agents. … Read more

Cross-Origin Read Blocking (CORB)

I have called third party API using Jquery AJAX. I am getting following error in console: Cross-Origin Read Blocking (CORB) blocked cross-origin response MY URL with MIME type application/json. See https://www.chromestatus.com/feature/5629709824032768 for more details. I have used following code for Ajax call : When I checked in Fiddler, I have got the data in response … Read more