Bug 1700480 [wpt PR 28197] - Remove Access-Control-Allow-Headers, a=testonly

Automatic update from web-platform-tests
Remove Access-Control-Allow-Headers

Access-Control-Allow-Headers is added for CORS preflight and should be
removed according to the spec
(https://w3c.github.io/ServiceWorker/#update-algorithm).

Bug: 1191514
Change-Id: Ide3c8556bf3a53d51f26d5f9be34af3b873922be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2782391
Reviewed-by: Ben Kelly <wanderview@chromium.org>
Commit-Queue: Ghazale Hosseinabadi <ghazale@chromium.org>
Cr-Commit-Position: refs/heads/master@{#866130}

--

wpt-commits: b1fc334f29f80f3160e98a1fc479b0d44b54ffd8
wpt-pr: 28197
This commit is contained in:
Ghazale Hosseinabadi 2021-03-27 11:06:12 +00:00 коммит произвёл moz-wptsync-bot
Родитель ca5f130c87
Коммит c01c353e55
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -3,8 +3,7 @@ import time
def main(request, response):
headers = [(b'Content-Type', b'application/javascript'),
(b'Cache-Control', b'max-age=0'),
(b'Access-Control-Allow-Origin', b'*'),
(b'Access-Control-Allow-Headers', b'service-worker')]
(b'Access-Control-Allow-Origin', b'*')]
imported_content_type = b''
if b'imported' in request.GET: