- From: maxkuzmin <notifications@github.com>
- Date: Mon, 15 Jul 2019 13:15:24 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 15 July 2019 20:15:46 UTC
When csp report initiated by browser and fetched by service worker content-type request header is missed by some reason. I created a [demo page](https://billowy-study.glitch.me/). Being on loaded page, please open network, filter request by "report" substring and reload the page. You will see 4 requests: - report1 xhr - report csp - report1 fetch - report fetch `report1` is called manually from js (`new XMLHttpRequest()`...), `report` - by browser because of csp rule violation. Both xhr and csp report/report1 calls have "Content-Type: application/csp-report" provisional request header. However, only report1 fetch has such header, report1 fetch misses the Content-Type header. Tested in latest Chrome and Firefox. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1449
Received on Monday, 15 July 2019 20:15:46 UTC