1
votes

I'm doing a test locally and whenever I hit the button from the example I found on Custom Integration I'm getting this error:

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.

I've read that the server needs to add a header to the response with

Access-Control-Allow-Origin: *

However the problem is the server isn't owned by me and I'm just requesting response from an API from Plaid.

What are the options that I have that I can do and fix on my end?

1
You have a problem with CORS. Also check this out: github.com/plaid/support/issues/182 - notgiorgi
@notgiorgi thank you but that is exactly what I was following. :( I've also tried this to no avail. :( - JohnnyQ
If you are using a service, and it has no CORS, then I think you're doing something wrong. Every public API has CORS allowed, or else what's the point? - notgiorgi
exactly what I thought but I'm just following a simple code found here plaid.com/docs/quickstart/#step-2-custom-integration which should work out of the box if you have the test key provided. :( - JohnnyQ

1 Answers

2
votes

I got a response from Plaid support. And it turned out they only support certain IP addresses. So I ask them to allow my IP address to transact to their API. Other solution would be to use a VPN, hope this helps.