Cors error from Base64 function, (any workaround)

Hi im using the base64 converter function, to convert an image (from a url from instagram which is restricted to open in my app) and im getting this error

do you know if i can somehow make it work?

one more test i made is with this online encoder and it works fine

test url
https://scontent-sjc3-1.cdninstagram.com/v/t51.2885-19/s150x150/115805821_3683456148349790_7697682752840594727_n.jpg?_nc_ht=scontent-sjc3-1.cdninstagram.com&_nc_cat=102&_nc_ohc=cBMZxAs8XX8AX_9tmZn&edm=ABfd0MgBAAAA&ccb=7-4&oh=00_AT-8i56FozOtHoH9ibOA3SY3tOspCLEh4GxlYd2N7C0MDQ&oe=61F08B10&_nc_sid=7bff83
thank you in advance