mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -20,19 +20,19 @@ def main(request, response):
|
|||
# space seperated list of origin and wildcard, fail
|
||||
response.headers.set('Timing-Allow-Origin', (origin + ' *'))
|
||||
elif tao == 'multi':
|
||||
# more than one TAO values, seperated by common, pass
|
||||
# more than one TAO values, seperated by comma, pass
|
||||
response.headers.set('Timing-Allow-Origin', origin)
|
||||
response.headers.append('Timing-Allow-Origin', '*')
|
||||
elif tao == 'match_origin':
|
||||
# contains a match of origin, seperated by common, pass
|
||||
# contains a match of origin, seperated by comma, pass
|
||||
response.headers.set('Timing-Allow-Origin', origin)
|
||||
response.headers.append('Timing-Allow-Origin', "fake")
|
||||
elif tao == 'match_wildcard':
|
||||
# contains a wildcard, seperated by common, pass
|
||||
# contains a wildcard, seperated by comma, pass
|
||||
response.headers.set('Timing-Allow-Origin', "fake")
|
||||
response.headers.append('Timing-Allow-Origin', '*')
|
||||
elif tao == 'uppercase':
|
||||
# non-case-sensitive match for origin, fail
|
||||
response.headers.set('Timing-Allow-Origin', origin.upper())
|
||||
else:
|
||||
pass
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue