I want to get url referer var referer = Request.Headers["Referer"].
I already used this in my other projects, but this time there is no such header there. Maybe i should add something to Configure method, but i can't find any info about it.
-
Referer is not required; maybe it's just not there for the request(s) you're using it on?sellotape– sellotape2020-05-18 06:03:00 +00:00Commented May 18, 2020 at 6:03
Add a comment
|
2 Answers
I had a similar problem: I found in a old stackoverflow post 2010 that the referer is not set unless a link button is clicked return redirect('...') only provided a blank value. In my case I had to have the sending app use a special html page with a href clicked by a javascript when page was loading. Tested and working. Just wanted to help clarify this issue. Hope this helps someone.