From 7a0ead39a17017e8db2cd2216eb454842fdeb658 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Mon, 18 Nov 2024 18:38:42 -0800 Subject: [PATCH] Add `Last-Event-ID` to CORS-safelisted request headers Since EventSource implementations in most environments already send this header without CORS preflight request, it makes sense to make it a safelisted header. See #568 --- fetch.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fetch.bs b/fetch.bs index 6558d941..36ddc3b2 100644 --- a/fetch.bs +++ b/fetch.bs @@ -984,6 +984,7 @@ is a CORS-safelisted request-header, run these steps:
`accept` +
`last-event-id`

If value contains a CORS-unsafe request-header byte, then return false. @@ -9089,6 +9090,7 @@ Ehsan Akhgari, Emily Stark, Eric Lawrence, Eric Orth, +Espen Hovlandsdal, François Marier, Frank Ellerman, Frederick Hirsch,