tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

scheme-restriction.any.js (379B)


      1 // META: script=/common/get-host-info.sub.js
      2 
      3 promise_test(t => {
      4  return promise_rejects_js(t,
      5                         TypeError,
      6                         fetch(get_host_info().HTTPS_REMOTE_ORIGIN + "/fetch/cross-origin-resource-policy/resources/hello.py?corp=same-site", { mode: "no-cors" }));
      7 }, "Cross-Origin-Resource-Policy: same-site blocks retrieving HTTPS from HTTP");