Angular-5 StripeConnect -303错误-预检响应无效(重定向)

时间:2018-06-28 00:35:07

标签: angular5 stripe-connect http-status-code-303

我正在使用Angular 5和Asp.NetCore进行StripeConnect(标准帐户类型)。 我能够使用code = {}值重定向到所需的URL。 当我尝试在下面的URL中使用此代码时,

https://connect.stripe.com/oauth/token \ client_secret = {{secret test key}} \ code = {{code}} \ grant_type = authorization_code”

1。我从角度解决方案中获得预检是浏览器中的无效(重定向)错误。

2。Postman的条纹登录页面html。

我编写的用于对上述URL(以角度表示)进行帖子调用的代码是:

BindingSource. Filter = "[field]>= '" & value1 & "' and [field] <= '" & value2 & "'" 

根据Internet上的建议,我尝试从后端(对我来说是.NET core(2.0)API)进行发帖,但没有为标准帐户类型创建帐户。

邮递员的测试还提供了完整的登录HTML页面,而不是获取此对象:

var counter = 0;
var neighbor1 = {
  name: 'John',
  myFunction: function () {
    console.log(this.name)
    this.doStuff();
  }
};
var neighbor2 = {
  name: 'Bob',
  doOtherStuff: function () {
    console.log(this.name);
    if(counter>5) {
      return false;
    } else {
      counter++;
      this.myFunction();
    }
  }
};

neighbor1.doStuff = neighbor2.doOtherStuff;

neighbor1.myFunction();

有人可以帮我这个忙吗?我已经被困了两天了。

任何想法都会受到赞赏。

1 个答案:

答案 0 :(得分:0)

好吧,我能够解决它。我没有使用角度项目中的URL(如上所述)来创建帐户(遵循node.js文档),而是在Asp.net核心(我的api解决方案)中调用了Stripe api,并对其进行了调用。