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

Cookie authentication in post method

$
0
0

@BrenoP wrote:

I have a post method trying to login asp net api, but i need to set a cookie in this post method to get the authorization. When i try the request in postman, i can see the cookie
this is my request code:

login(email: string, senha: string) {
return this.http.post(${API}/Login/Login, {email: email, senha: senha}, {withCredentials: true})
}

I tryed this withCredentials, but it doesn’t work

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70915

Trending Articles



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