I am sending a http.get request and expecting it to return a value, let say x. But the link is redirected and instead I get a 302 error.
When in network (web developer tools) I click on the original request, it goes to the redirekted link and the value of x is shown. Unfortunately, because x is in the new link, I cann't get it easily from response of my request. Does anyone know how I can get it? Thanks!
Here is my .ts file:
this.logingService.fun().subscribe(
            response => {
                this.x = response['x']; // I would like to get x value somehow like this, which doesn't work!
                console.log(response);
            },
            error => {
                console.log(error);                
            }
        );
Here is my serivse:
fun(): Observable<any>{
        return this.http.get(url);
    }
