Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api requests made over https contain links to http endpoints (not https) (when behind a reverse proxy/load balancer) #714

Open
jamemackson opened this issue Jun 18, 2017 · 0 comments

Comments

@jamemackson
Copy link
Contributor

Example request: https://api.example.com/users

Related response:

{
    "data": [],
    "links": {
        "self": "https://api.example.com/users",
        "first": "https://api.example.com/users",
        "last": "https://api.example.com/users",
        "prev": null,
        "next": null
    },
    "jsonapi": {
        "version": "1.0"
    }
}

This is happening while running lux 1.2.0 via ubuntu linux in AWS behind an Elastic Load balancer. Load balancer is the https termination point and traffic then runs to nginx on 80 which routes request to lux process on port 3000.

I'm guessing that since the internal request comes in on http is why the response contains http links but hope we could establish a standard to address this case. I think it's fairly standard to update the request a header that contains the original request url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants