Skip to main content
Inspiring
August 13, 2021
Question

Missing information from #CGI.http_referer#

  • August 13, 2021
  • 1 reply
  • 933 views

(CF2016 Update 17)

 

Hi, I've used #CGI.http_referer# on and off for many years. On my recent use I noticed that part of the URL's were missing

 

Example if  link from the local host to the domain and try to log in, I get part of the link http://127.0.0.1/ but not the full link I came from http://127.0.0.1/sometest/testrefer.html for example

 

I just tried it on the local host to the local host and that worked fine.

 

I have some servers on a load balancer and in the past I'd lost some info as the ISP didn't pass it through but this server is not on the balancer so I know that is not the issue

 

Does anybody know where I might look to resolve this?

 

Thanks

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    August 14, 2021

    I was unable to reproduce that. Could you provide a test case?

     

    There is no problem when I test with the following 2 files:

    <!--- file /wwwroot/workspace/CF_Project/testRef1.html --->
    <a href="http://localhost:8500/workspace/CF_Project/testRef2.cfm">To CGI dump</a>
    <!--- /wwwroot/workspace/CF_Project/testRef2.cfm --->
    <cfdump var="#cgi#">

     

    ACS LLCAuthor
    Inspiring
    August 14, 2021

    Try here

    http://aspirenet.com/testclick.html

     

    THere's a link that will go to a cgi dump

     

    The refer that I see is just aspirenet.com/

     

    I am wondering if this is a browser issue, I've tried on a couple but maybe there have been changes to default to pass a minimum amount of data.

    BKBK
    Community Expert
    Community Expert
    August 15, 2021

    Oh, yes. I can see it.

    I think it is the result of the recent "strict-origin-when-cross-origin" changes by browsers to enforce privacy.