I’m stucking at setup the mailchimp api, I wanna update my contact into mailchimp list
and web api mailchimp using http basic authentication: ([https://mailchimp.com/developer/guides/get-started-with-mailchimp-api-3/])(https://mailchimp.com/developer/guides/get-started-with-mailchimp-api-3/)
curl --request GET \
--url 'https://us20.api.mailchimp.com/3.0/' \
I have my api key, but I cannot setup in thunkable (fetching error)
thanks for reading
To begin with, I would recommend that you study scrTinyPNG, and then use its example to make your blocks with basic authentication
unfortunately the result when call get api didn’t show in live test web or web responsive,
It showed result on Thunkable live app,
thanks for your kindly support as usual @actech
If you open the console in the browser by pressing F12, you will see the reason why this does not work in the browser preview.
this is the error
Access to fetch at ‘https://api.getresponse.com/v3/contacts’ from origin ‘https://x.thunkable.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
I already add the Access-Control-Allow-Origin: * into the header but still error
Now you know how to view logs in the browser, if something doesn’t work, and what CORS is, which sometimes you have to deal with
thanks for your information @actech