Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70764

Accessing Cookies in HTTP Response for Authentication

$
0
0

@bschmuck wrote:

How do I access cookies sent from a server in an HTTP response with Ionic? I am using an Express server with cookie-based authentication, but I am not receiving any cookie headers in my response. I also tried using ngCookies but am getting null.

    return this.http.post(loginURL, {withCredentials: true})
      .map(res => {
        console.log(res);
        return res.json()
      })
      .subscribe(data => {
     });

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70764

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>