-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcors-test.html
58 lines (53 loc) · 1.66 KB
/
cors-test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html id="docHTML">
<head>
<title>CORS test with multiple origins</title>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<script>
document.addEventListener('DOMContentLoaded', function() {
/*
const panes = require('mashlib')
const UI = panes.UI
const $rdf = UI.rdf
const dom = document
$rdf.Fetcher.crossSiteProxyTemplate = self.origin + '/xss?uri={uri}';
var uri = window.location.href;
var kb = UI.store;
var outliner = panes.getOutliner(dom)
function complainIfBad (ok, message) {
if (ok) return
let msg = box.appendChild(dom.createElement('p'))
msg.textContent = message
}
*/
});
</script>
</head>
<body>
<p>To simulate a problem which occurs when a user vits two web sites which access the same public data,
we make two iframes, </p>
<table style="width:100%;">
<tr><th>CORS test</th></tr>
<tr style="font-size:100%">
<td>one:
<iframe src="https://timbl.com/timbl/Public/Test/DataBrowserAsAWebApp/browse.html?uri=https%3A%2F%2Fwww.w3.org%2FPeople%2FBerners-Lee%2Fcard%23i"
style="width:70em; height:15em; border: 0.1em solid grey;">
</iframe>
</td>
</tr>
<tr style="font-size:100%">
<td>two:
<iframe src="https://timbl.com/timbl/Public/Test/DataBrowserAsAWebApp/browse.html?uri=https%3A%2F%2Fwww.w3.org%2FPeople%2FBerners-Lee%2Fcard%23i"
style="width:70em; height:15em; border: 0.1em solid grey;">
</iframe>
</td>
</tr>
<tr><td colspan="3">
<div class="TabulatorOutline" id="box">
<table id="outline"></table>
</div>
</td>
</tr>
</table>
</body>
</html