Can't make post request from angular to C# net core api

i’m trying to post information to my backend, wich is .Net 5 from my angular12 SPA with something like this

return this.http.post(‘https://localhost:44307/something/postRequest’, data);

always returns error 401 unauthorized

i don’t have any problem with GET request, any advice would be appreciated

PD: sorry for my english

i already solved it, it was a problem in my post request

1 Like

Are you able to share the script code for the benefit of others? Thank you!

Previous message deleted due to SPAM reasons.