Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49259

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 49259

Trending Articles