I get a temporary URL from a JSON server.
This temporary URL redirects to another (permanent) URL.
I want to get this redirect (permanent) URL to store it in my DB.
Is it possible with Angular 5 ???
I would have preferred to do it directly in Angular 5.
But finally, as suggested by JB and Vaibhav, I used a server on which I ran a PHP program. In this program, I get the the redirect URL with curl.
And I access this PHP program from Angular with HttpClient.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.