I’ve built the Nodejs back end to successfully go through the signup process on the Gocardless (GC) API which works fine when ran as an app.
However, when I add Vue as the front end and make the calls back and forth via Nodejs as the back end I get a cross origin error.
The error happens when I receive back a redirect url from the GC API which provides the intermediate signup form which normally loads straight into the browser if nodejs is simply being ran as the app.
The problem seems to be that, as I’m now using Vue at the front end and send the original request to the API via Axios, when the response comes back from the API it’s trying to load the response url into the browser which Vue is controlling via vue-router.
I need someone to write the code to pass back the redirect url from the nodejs back end to Vue.