mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update web-platform-tests to revision 3d117ae1266e6bd039a3a1ab92b27e82c3ccc92d
This commit is contained in:
parent
647796ede6
commit
20a08918d9
132 changed files with 3012 additions and 689 deletions
|
@ -23,6 +23,10 @@ def main(request, response):
|
|||
# more than one TAO values, seperated by comma, pass
|
||||
response.headers.set('Timing-Allow-Origin', origin)
|
||||
response.headers.append('Timing-Allow-Origin', '*')
|
||||
elif tao == 'multi_wildcard':
|
||||
# multiple wildcards, seperated by comma, pass
|
||||
response.headers.set('Timing-Allow-Origin', '*')
|
||||
response.headers.append('Timing-Allow-Origin', '*')
|
||||
elif tao == 'match_origin':
|
||||
# contains a match of origin, seperated by comma, pass
|
||||
response.headers.set('Timing-Allow-Origin', origin)
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<body>
|
||||
<script>
|
||||
function dirname(path) {
|
||||
return path.replace(/\/[^\/]*$/, '/');
|
||||
}
|
||||
|
||||
function request() {
|
||||
var dirName = dirname(location.href);
|
||||
// create a cross-origin request
|
||||
var url = dirName.replace('://', '://www.') + 'TAOResponse.py?tao=multi_wildcard';
|
||||
var img = new Image();
|
||||
img.crossOrigin = "anonymous";
|
||||
img.src = url;
|
||||
}
|
||||
|
||||
if(window.parent.setup_iframe) {
|
||||
window.parent.setup_iframe();
|
||||
request();
|
||||
}
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue