Skip to content

Authorization header is not passed with Redirect Request or Replace String #71

@soepketel-dev

Description

@soepketel-dev

Prerequisites

  • Using the latest version of Requestly

Expected Behavior

When I am creating a 'Redirect Request' or 'Replace String' HTTP Rule in the Desktop App it should forward/redirect to the changed endpoint URL. All original header keys and values should be passed.

Current Behavior

All original header keys and values are being passed, except the 'Authorization' header. The 'Authorization' header vanished.

Steps to Reproduce

  1. Open the Requestly Desktop-app.
  2. Create Redirect Rule (or a Replace String rule) to forward the request to another endpoint (staging api for example)
  3. Use any http request with an 'Authorization' header.
  4. The 'Authorization' header has vanished.

Possible Solution (Not obligatory)

This was also an issue on the Chrome plugin:
requestly/requestly#1208

I noticed that this (requestly/requestly#1208 (comment)) workaround fixed my issue as well for the Desktop Application !

Context

I tested this by sending requests to an PHP file with the following code to see all headers:
$headers = getallheaders(); var_dump($headers);

  1. 'Replay request' with the Authorization header:
    You can see the Authorization header vanished
example_1
  1. 'Replay request' with the Authorization header + Authorization2 header:
    You can see the Authorization header vanished, but the Authorization2 header did not.
example-2
  1. 'Replay request' with the Authorization header and this (Error 401 - Authorization header is not passed in the redirected url after upgrading Chrome to version 119 requestly#1208 (comment)) workaround applied:
example-3

Your Environment

  • Operating System and version : Windows 11 23H2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions