You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
when I call the method "getUserData" I unfortunately get a 401 (Unauthorized)" error. But if call the URL "http://ppstemp.com/api/User/Profile" with GET and the same headers in Postman, it works!`
how i change my request headers ?? :((
this.$http.get('http://ppstemp.com/api/User/Profile',{ params: { n: ... }, headers: {
"Authorization": "bearer "+ localStorage.getItem('token') ,
"Accept": "application/json",
"cache-control": "no-cache"
}})
In your case `headers` was passed within an object as the third parameter.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there!
when I call the method "getUserData" I unfortunately get a 401 (Unauthorized)" error. But if call the URL "http://ppstemp.com/api/User/Profile" with GET and the same headers in Postman, it works!`
how i change my request headers ?? :((
The text was updated successfully, but these errors were encountered: