I have a problem with postman...
For one side, I can make this request with the body in form data.
But, when I try to send the same request with the body in raw(json) I got this:
I am trying to send the data via Angular 5 to a Drupal 8 Backend.
Thanks!
POST request to send JSON in a form (multipart/form-data) By default, the content type of each part is not visible. You need to enable this by clicking the three dots and enabling Content Type. This will allow you to create a multipart/form-data request with each part having a different content type.
Try adding to the Headers the Content-Type: application/json
It will depend if the backend can receive a JSON format.
In my case, I am working with the Drupal 8 Module simple Oauth. and the The format for OAuth 2.0 Bearer tokens is actually described in a separate spec, RFC 6750.
More concrete here
The entity-body follows the encoding requirements of the "application/x-www-form-urlencoded" content-type as defined by HTML 4.01 [W3C.REC-html401-19991224].
So, In my particular case, I will try to send a form-data from angular.
Thanks: Jean Rostan
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With