Update web-platform-tests to revision c2e5b9fbaa17424f05ca2bb04609790a3b61d5c2

This commit is contained in:
WPT Sync Bot 2019-03-17 21:51:47 -04:00 committed by Josh Matthews
parent db7bb2a510
commit f2c1b70e4a
138 changed files with 2799 additions and 851 deletions

View file

@ -11,8 +11,11 @@ def main(request, response):
# wildcard, pass
response.headers.set('Timing-Allow-Origin', '*')
elif tao == 'null':
# null, fail
# null, fail unless it's an opaque origin
response.headers.set('Timing-Allow-Origin', 'null')
elif tao == 'Null':
# case-insentive null, fail
response.headers.set('Timing-Allow-Origin', 'Null')
elif tao == 'origin':
# case-sensitive match for origin, pass
response.headers.set('Timing-Allow-Origin', origin)