问题描述
我的邮递员有问题...
I have a problem with postman...
一方面,我可以使用表单数据中的正文提出此请求。
For one side, I can make this request with the body in form data.
但是,当我尝试在raw(json)中发送与正文相同的请求时,
But, when I try to send the same request with the body in raw(json) I got this:
我正在尝试发送数据通过Angular 5到Drupal 8后端。
I am trying to send the data via Angular 5 to a Drupal 8 Backend.
谢谢!
推荐答案
这将取决于后端是否可以接收JSON格式。
It will depend if the backend can receive a JSON format.
就我而言,我正在使用Drupal 8模块简单Oauth。 OAuth 2.0承载令牌的格式实际上是在单独的规范中描述的。
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.
更具体的
因此,在我的特殊情况下,我将尝试从angular发送表单数据。
So, In my particular case, I will try to send a form-data from angular.
感谢:
这篇关于邮递员将带有正文表单数据的请求发送到JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!