How to send referer using Meta refresh on all browers?

1.5k views Asked by At

I want to redirect a webpage to a destiation WITH a referer. The straight forward solution is:

<html><head><meta http-equiv="refresh" content="0; url=example.com" /></head><body></body>

The problem is, this works in Chrome, Safari, but does not work in IE and FF because these browsers don't send referer. What can I do to accomplish the task, because the destination require an referer in order to process.

1

There are 1 answers

2
Chris Wheeler On

You could try using a javascript redirect based on automatic form submission.

<html>
  <head></head>
  <body>
    <form id="redirect" action="//example.com" method="get"></form>
    <script>
      document.getElementById("redirect").submit();
    </script>
  </body>
</html>