Update web-platform-tests to revision 3d117ae1266e6bd039a3a1ab92b27e82c3ccc92d

This commit is contained in:
WPT Sync Bot 2018-09-23 21:29:48 -04:00
parent 647796ede6
commit 20a08918d9
132 changed files with 3012 additions and 689 deletions

View file

@ -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)

View file

@ -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>