[Webkit-unassigned] [Bug 233916] New: Safari Bug "no-cache" network error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 7 00:34:01 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=233916
Bug ID: 233916
Summary: Safari Bug "no-cache" network error
Product: WebKit
Version: Safari 15
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Service Workers
Assignee: webkit-unassigned at lists.webkit.org
Reporter: janos.wartig at icloud.com
A fetch request on the page that sets the cache: "no-cache" will result in a network error when it is fetched by a Service Worker.
The error that is thrown looks like this:
TypeError: Request header field Cache-Control is not allowed by Access-Control-Allow-Headers
I implemented a simple test page that reproduces the issue here: https://testjanos.app.baqend.com/
The test page registers a simple Service Worker which listens to fetch requests and tries to fetch them.
It also includes the following script tag:
<script>
let options = { method: "POST", cache: "no-cache", mode: "cors", body: '{"weather":true}' };
fetch("https://dcinfos-cache.abtasty.com/v1/geoip", options);
</script>
Ways to reproduce:
1. Go to https://testjanos.app.baqend.com/
2. Open Service Workers view (Developer -> Service Workers)
3. Refresh the page
4. Observe that resource https://dcinfos-cache.abtasty.com/v1/geoip could not be fetched due to above error (error prited to the Service Worker console)
Is there any fix for this issue?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211207/71d267e7/attachment.htm>
More information about the webkit-unassigned
mailing list