Authenticate using Postman to test REST API #2915
-
I am using code-server to develop a REST API. I am running code-server with the PASSWORD environment variable (not --link mode).
With static HTML pages, I've been able to use the /proxy/ or /absproxy/ suffix to access them from the browser after authenticating to code-server. For testing my REST API, I am not sure how to authenticate using Postman. I am testing a POST request. My REST API itself doesn't require authentication. But since it is being proxied through code-server, I am not sure how to authenticate. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Looks like Postman supports cookies (https://learning.postman.com/docs/sending-requests/cookies/) so you could add a cookie with the name of |
Beta Was this translation helpful? Give feedback.
Looks like Postman supports cookies (https://learning.postman.com/docs/sending-requests/cookies/) so you could add a cookie with the name of
key
set to the value of the sha256 of your password (you can either hash it yourself or copy it from the browser).