0

I'm trying to access the Dwolla API and have already made the activated HTTPS for the local host. I'm still getting a CORS issue. enter image description here

1 Answers1

0

That's CORS - Cross-Origin Resource Sharing error.

Read more about it here

Beautifully answer in Stackoverflow

Can you specify which library are you using to make request. If it's axios then you can try following which is using proxy -

axios.get('https://a.4cdn.org/a/threads.json', {
    headers: {
      'Access-Control-Allow-Origin': '*',
    },
    proxy: {
      host: '104.236.174.88',
      port: 3128
    }
    }).then(function (response) {
        console.log('response is : ' + response.data);
    }).catch(function (error) {
        if (error.response) {
          console.log(error.response.headers);
        } 
        else if (error.request) {
          console.log(error.request);
        } 
        else {
          console.log(error.message);
        }
    console.log(error.config);
});

Hope this helps you.