Skip to content

Improve URL creation. #1

Description

@ChristianAlexander

After shipping in Heroku, a hack was added to allow a production build to force HTTPS on the generated URLs that are returned when mapping from the repository to the JSON response. This is because Heroku's load balancers terminate SSL/TLS and hit applications directly using HTTP.

This hack introduced two undesirable changes:

  1. A new environment variable was added, which should not be necessary.
  2. The Request object is directly modified to have IsHttps = true.

A possible solution is to modify the incoming request using some middleware, possibly after detecting the standard ASPNETCORE_ENVIRONMENT variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions