Skip to content

Passport Strategy redirect_uri uses HTTP instead of HTTPS #714

Answered by panva
rafaelavd asked this question in Q&A
Discussion options

You must be logged in to vote

So you have two options to remedy

  • fix your proxy setup as per the express guide above (i.e. setting X-Forwarded-For, X-Forwarded-Host, and X-Forwarded-Proto headers at your reverse proxy)
  • overwrite the currentUrl method on the Strategy instance to return the current URL

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@panva
Comment options

@panva
Comment options

Answer selected by rafaelavd
@rafaelavd
Comment options

@panva
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants