You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
The developer should be able to define the host of the redirect URL to be https://{Host}/auth/callback instead of taking the host from context (ctx).
When having separate backend and frontend applications and deploying to a server with a reverse proxy like on Heroku or AWS Beanstalk. The Host header will be changed because of the proxy and even if we used koa's proxy feature which uses the forwarded host instead of host header, X-Forwarded-Host is not always passed by default.
This is why I think we should be able to pass an optional parameter to define the redirect URL host.
Type
[ x] Changes to existing features
Motivation
What inspired this feature request? What problems were you facing,
I am facing a problem were the redirect URL is having the backend host as its host because of the reverse proxy on my server and thus having to whitelist this URI and face cookies problem or having to edit the proxy behavior to add the X-Forwarded-Host.
The text was updated successfully, but these errors were encountered:
Note that this repo is no longer maintained and this issue will not be reviewed.
Prefer the official JavaScript API library.
If you still want to use Koa, see simple-koa-shopify-auth
for a potential community solution.
Overview
The developer should be able to define the host of the redirect URL to be
https://{Host}/auth/callback
instead of taking the host from context (ctx
).When having separate backend and frontend applications and deploying to a server with a reverse proxy like on Heroku or AWS Beanstalk. The Host header will be changed because of the proxy and even if we used koa's proxy feature which uses the forwarded host instead of host header,
X-Forwarded-Host
is not always passed by default.This is why I think we should be able to pass an optional parameter to define the redirect URL host.
Type
Motivation
X-Forwarded-Host
.The text was updated successfully, but these errors were encountered: