【发布时间】:2017-01-24 11:09:27
【问题描述】:
我正在本地进行测试,每当我点击我在Custom Integration 上找到的示例中的按钮时,我都会收到此错误:
XMLHttpRequest cannot load https://link-tartan.plaid.com/client/info. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://cdn.plaid.com' is therefore not allowed access. The response had HTTP status code 403.
我读到服务器需要在响应中添加标头
Access-Control-Allow-Origin: *
但问题是服务器不归我所有,我只是从 Plaid 的 API 请求响应。
我有哪些选择可以做和解决?
【问题讨论】:
-
CORS 有问题。另请查看:github.com/plaid/support/issues/182
-
@notgiorgi 谢谢你,但这正是我所关注的。 :(我也试过this无济于事。:(
-
如果您正在使用一项服务,并且它没有 CORS,那么我认为您做错了什么。每个公共 API 都允许使用 CORS,否则有什么意义?
-
正是我的想法,但我只是按照plaid.com/docs/quickstart/#step-2-custom-integration 此处找到的简单代码进行操作,如果您提供了测试密钥,它应该可以开箱即用。 :(
标签: javascript plaid