External Javascript CORS

Currently trying to make use of an external library, not really something I've done a lot with. I'm aware that not all are compatible but was hoping someone could give me a better understanding of why this one does not work.

I was trying to use getAddress.io, a library for doing address searches.

The console says that the fetch was blocked by CORS policy which is probably the primary problem, does that mean getAddress is blocking Retool? Is there typically something I can do about this?

I also noticed most modules that do work start with lines like
!function(e,t){"function"==typeof

This library is attempting to set a variable
var getAddress=function(t){

I've read that the library needs to be UMD compatible, not sure how to identify it but I'm wondering whether even if I could fix the CORS issue whether this rules this library out.

Any advances to my knowledge would be greatly appreciated.

Hello @Ross_Coombes!

I am not super familiar with CORS errors in Retool unfortunately, but can definitely look into that.

What was the exact wording of the error? I was there was another previous bug where Retool was setting the the origin of fetch requests to null but I believe this was patched.

Are you importing the library into a web app or a workflow?

Also to clarify, you believe that Retool only allows for UMD compatible libaries, and are concerned that getAddress.io is not working because it is not UMD compatible?

I can ask our eng team about UMD compatibility for Libraries :man_technologist: