Revision d1ff75d461706581ce257bd1b17a6e74f9052c16 authored by jgraham on 20 April 2016, 15:21:24 UTC, committed by jgraham on 20 April 2016, 15:21:24 UTC
Merge pull request #2853 from sync_fca53aa2393eff0ca07453922e9cc5af92ed1c5b
2 parent s f59a959 + fca53aa
Raw File
open-referer.htm
<!doctype html>
<html>
  <head>
    <title>XMLHttpRequest: open() - value of Referer header</title>
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="/following::ol[1]/li[2]/ol[1]/li[4]" />
  </head>
  <body>
    <div id="log"></div>
    <script>
      test(function() {
        var client = new XMLHttpRequest()
        client.open("POST", "resources/inspect-headers.py?filter_name=referer", false)
        client.send(null)
        assert_equals(client.responseText, "referer: "+location.href+'\n')
      })
    </script>
  </body>
</html>
back to top