зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ca5f130c87
Коммит
c01c353e55
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче