Answer the question
In order to leave comments, you need to log in
How to fix Json rpc authorization error?
I am writing a Json rpc api to register users in the authorization system.
I send a Post request to this address test.ru/api/jsonrpc and enter a token for authorization, it all works.
But at the input of my request, one of my methods refers to this address to add users to the system auth.test.ru/api/v1/user
And I get this
Client error: `POST http://auth.test.ru/api /v1/user` resulted in a `401 Unauthorized` response:\nUnauthenticated\n"
How can I add additional authorization in Postman?
I tried inserting cookies, but it doesn't work
Answer the question
In order to leave comments, you need to log in
one of my methods calls this address to add users to the system
jsonrpc is a transport independent protocol. Why are you trying to attach cookie authorization to it, which is only possible when using the http protocol? The token must be passed explicitly in the request body.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question