Closed zcorpan closed 3 years ago
It definitely should be a POST, that seems to have been an oversight from when the fetch mechanics were spelled out, way back in b50790acc9a1b39e7febae1fe0771215cbfdca3c.
Other properties I can see that might be useful or important: "cache-mode", "use-cors-preflight", "referrer", "keepalive". I'm not sure how or if each of them should be set, though, without some more reading.
Yeah, "keepalive" is one I thought probably should be set, but I also have more questions about how the delaying of sending reports is supposed to work. I'll report a separate issue about that.
keepalive does have a number of limitations and we didn't consider reports when designing it so there might be more work required there. I don't think any of the other properties identified would need to be set here (note that referrer has appropriate defaulting).
Merging this, then, and we can follow up about keepalive on the other issue.
https://w3c.github.io/reporting/#try-delivery says
and doesn't list "method", so the request will use the default value which is
GET
.Given https://w3c.github.io/reporting/#media-type and https://w3c.github.io/reporting/#sample-reports it seems the intention is to set the method to
POST
.Are there other properties of "request" that should be set but aren't? I'm not too familiar with all of them, maybe @annevk can help?