Request.UrlReferrer is NULL for HTTPS

I use "Request.UrlReferrer.AbsoluteUri" in my project to get the URL where my application is located. I can get the URL if I am redirected from the http host, but I get zero if I am redirected from the https host. how can I get "UrlReferrer AbsoluteUri" both "http and https"?

+6
source share
1 answer

Check the actual HTTP data using an inspector that supports https, such as a violinist. Many browsers simply do not send a referrer when communicating via https, and in this case there is simply no way to get it.

If you have a site of origin, you can add something to the query string as a replacement, but more on that.

+6
source

Source: https://habr.com/ru/post/953212/


All Articles