Closed aagranovExtend closed 1 month ago
@aagranovExtend The Authorization value is set at time of sending the request, which is after the pre-req script execution.
You can use the Header Name
property for this use-case which is available from v2.25.7
@aagranovExtend Are you still experiencing the issue, or has it been resolved?
Closing this issue, feel free to continue discussion if needed
Describe the bug The header UI only seems to update by manual input, not via scripting.
To Reproduce What I do is in the Pre Run script, read an access token fro the OAuth2 tab and write it into a header via
const accessToken = tc.request.auth.oauth2.accessToken tc.request.setHeader('x-access-token', accessToken)
the actual request going out is correct, but the Headers UI still shows the old value.
Expected behavior I'd expect the header value to be updated in the UI.
Platform:
Are you using the free version/paid version/trial: free version