+ 1

how i get back my original url from a bit.ly short url using javaScript

i have an bit.ly url i want to get the original url in my program as string how should i get

3rd Jul 2020, 6:24 AM
Rajesh Dehury
Rajesh Dehury - avatar
4 odpowiedzi
+ 1
As far as i know the only way is to send an http request to it then read the redirected url, worth noting if you try doing this from a browser instead of nodeJS it will probably be blocked due to cors
3rd Jul 2020, 7:08 AM
JME
+ 1
Yess!!! I also have the same problem! It converts to a comment because of // after https.
3rd Jul 2020, 6:48 AM
Namit Jain
Namit Jain - avatar
0
how can u give explanation programatically
3rd Jul 2020, 11:06 AM
Rajesh Dehury
Rajesh Dehury - avatar
0
Are you using node?
3rd Jul 2020, 4:27 PM
JME