If I have configured a property Authorization
with a bearer token, will InvokeHTTP send that header to the redirected URL?
I can't find anything in the documentation about it. I also can't seem to find clarity in the source of OkHttp, the underlying library for InvokeHTTP.
Is there a way to strip a header from a redirected URL based on the URL?
I may quickly be getting into "use ExecuteGroovyScript" territory here.
The short answer is no, because OkHttp strips
Authorization
on redirects:We know this thanks to https://stackoverflow.com/a/52285990/204052.