3rd party API call failed using HTTP/S block

I’m trying to call a 3rd party API and I’m getting the error(s) below. How do I fix this in UI builder?

Access to XMLHttpRequest at ‘https://postman-echo.com/get’ from origin ‘https://drivencats.backendless.app’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
sdk.js:14 GET https://postman-echo.com/get net::ERR_FAILED 200
sendRequest @ sdk.js:14
sendXmlHttpRequest @ sdk.js:14
q.send @ sdk.js:14
send @ sdk.js:14
onEnter @ bundle.js:5
runHandler @ sdk.js:14
(anonymous) @ sdk.js:14
Ii @ sdk.js:14
Ji @ sdk.js:14
Sj @ sdk.js:14
r.unstable_runWithPriority @ sdk.js:14
cg @ sdk.js:14
Jj @ sdk.js:14
yj @ sdk.js:14
(anonymous) @ sdk.js:14
r.unstable_runWithPriority @ sdk.js:14
cg @ sdk.js:14
fg @ sdk.js:14
gg @ sdk.js:14
Ig @ sdk.js:14
zh @ sdk.js:14
(anonymous) @ sdk.js:14
async function (async)
(anonymous) @ sdk.js:14
(anonymous) @ sdk.js:14
Ii @ sdk.js:14
Vj @ sdk.js:14
r.unstable_runWithPriority @ sdk.js:14
cg @ sdk.js:14
Dj @ sdk.js:14
(anonymous) @ sdk.js:14
X @ sdk.js:14
me.port1.onmessage @ sdk.js:14
sdk.js:14 Uncaught (in promise) Error: Network Error
at XMLHttpRequest.handleErrorEvent (sdk.js:14)

the problem has been resolved in slack chat

Marc Chriqui Yesterday at 10:14 PM
Hi! First post here :slightly_smiling_face: .I’m trying to call a 3rd party API using HTTP/S and I’m getting the error(s) below. How do I fix this in UI builder?
Access to XMLHttpRequest at ‘https://postman-echo.com/get’ from origin ‘https://drivencats.backendless.app’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
sdk.js:14 GET https://postman-echo.com/get net::ERR_FAILED 200




5 replies

markpiller  13 hours ago
Do you make that request from a web page or from Cloud Code?

Marc Chriqui  13 hours ago
From a web page

markpiller  13 hours ago
looks like the 3rd party server doesn’t handle cors requests properly. Your other option is to make that request from an API service

Marc Chriqui  13 hours ago
I'll try that. Thanks Mark.

markpiller  13 hours ago
You are welcome