1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12

content / test / data / loader / cors_preflight.html [blame]

<html>
<head>
<script>
const cors_url = location.protocol + "//" + location.hostname + ":" +
    location.search.split(';')[1];
const cache_mode = location.search.split(';')[2];
fetch(cors_url, {cache: cache_mode, headers: [["foo", "bar"]]}).then(() => {
  document.title = "DONE";
});
</script>
</head>
</html>