To automatically set jwt token before a request:
- In "Authorization" tab - set "No Auth"
- In "Headers" tab - add header with key "Authorization" and value "{{Authorization}}"
- You can set a script for the whole collection/folder/single request. To set it for every single request from the collection right-click on the collection name and "Edit". Go to "Pre-request Scripts" tab and paste:
pm.sendRequest({ url: "https://localhost:8181/hopsworks-api/api/auth/login", method: 'POST', header: {
'Content-Type': 'application/x-www-form-urlencoded'