部署到heroku的新版本中出现503 Service Unavailable错误

时间:2019-05-28 22:10:32

标签: heroku cors

  

选项https://polar.herokuapp.com/company 503(服务不可用)t   原产地的“ https://polar-woodland-81477.herokuapp.com/company”   “ https://app.herokuapp.com”已被CORS政策阻止:回复   预检请求未通过访问控制检查:否   请求中存在“ Access-Control-Allow-Origin”标头   资源。如果不透明的响应满足您的需求,请设置请求的   模式设置为“ no-cors”,以在禁用CORS的情况下获取资源。

在API

finalise = new Subject();

this.intervalObs.pipe(takeUntil(this.finalise)).subscribe();

finish() {
  // When finalise emits the other observable completes
  this.finalise.next();
}

0 个答案:

没有答案