#HEAD or GET request cannot have body?
18 messages · Page 1 of 1 (latest)
The token should be passed with Authorization (if not done already as it's hidden)
yeah, i hid the token but it's there. I dont have direct control over the api so i cant use the post method, have to use get. I can try to use query Params
no, just use Authorization, here should be included the token to be consumed by the api
You mean i have to send my tokens via the authorization in the header?
yes
Alright, ill try that
As you are consuming an API, you should rely on its documentation to know how to pass such information though
I have the documentation, i also got it to work via the body on postman. But angular is pretty new for me, so i'm still figuring everything out.
I did have to send it as raw code via postman for some reason, instead of the x-www=form-urlencoded
I cant seem to get it to work when i put my tokens under authorization or anywhere in the header. The authorization also includes my bearer token.
There is nothing specific to Angular but the api here. I'm maintaining an API used by dozens of different framworks and using the Bearer token is a standard.
This bearer token being either your consumer or user token btw