jeremydaly / jeremydaly/lambda-api

Redirect and Remove Authorization Header

Open
#149 2 comments 0 reactions 1 assignee View on GitHub

@naorpeled is already working on this.

Since Feb 3, 2023.

Dominant language
JavaScript
Stars
1.5k
Forks
127
Avg merge
31m
Merged PRs (30d)
2

Description

What's the correct way to remove the authorization header from being passed along with a redirect? This is what I'm doing now:

        res.removeHeader('authorization').redirect(signedUrl);

Which doesn't seem to work. My original Authorization header is being passed along causing the redirect to a signed s3 url to fail.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.