【发布时间】:2021-09-03 16:04:43
【问题描述】:
我正在寻找 DocuSignApi 与 Angular 的集成。我正在遵循这些步骤。 角应用 后端服务器使用 .net core Web API 处理,DocuSign api 使用 nuget。
我能做到吗?
-
选项 1 - Angular 应用程序 - 将命中 - 中间件 api 应用程序的登录方法 - 中间件将通信 - docusign - 成功后它将共享登录用户的详细信息。
-
选项 2 - Angular 应用程序 - 当我这样做时,直接点击 docusign 方法
var url = "https://account-d.docusign.com/oauth/auth?response_type=token&scope=signature&client_id=XXXXXXXXXXXXXXX-01caXXXXXXXX&state=a39fh23hnf23&redirect_uri=http://localhost:81/"; return this._dataService.getThirdParty1(url, header) .pipe(map((response: Response) => { return response; })); - public getThirdParty(url) { return this._httpClient.get( url).pipe().pipe(map(this.handleResponse)).pipe(catchError(this.handleError.bind(this))); }
我遇到错误
从源 'http: //localhost:81' 已被 CORS 策略阻止:对预检请求的响应未通过访问控制检查:预检请求不允许重定向。 account-d.docusign.com/oauth/auth?response_type=token&scope=signature&client_id=XXXXXXXXXX-411a-9bb9-01ca8f1b220&state=a39fh23hnf23&redirect_uri=http://localhost:81/:1 加载资源失败:net::ERR_FAILED
请提供检查这些选项的方法。
【问题讨论】:
标签: docusignapi