Relative Content

Tag Archive for c#.netasp.net-corehttpurl

GetDisplayUrl not getting correct http scheme

Background:
I am trying to get my endpoint URL from HttpContext for attribute validation work where the URL needed to be fully identical. The problem happens when I try the get the full URL, where the scheme will always be http instead of https.
During testing using Postman, my GET URL is https.
e.g https://endpoint/id?access_token=xxx