Skip to content

Commit 7a0ead3

Browse files
committed
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
1 parent bdb452e commit 7a0ead3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fetch.bs

+2
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,7 @@ is a <dfn export>CORS-safelisted request-header</dfn>, run these steps:
984984

985985
<dl class=switch>
986986
<dt>`<code>accept</code>`
987+
<dt>`<code>last-event-id</code>`
987988
<dd>
988989
<p>If <var>value</var> contains a <a>CORS-unsafe request-header byte</a>, then return false.
989990

@@ -9089,6 +9090,7 @@ Ehsan Akhgari,
90899090
Emily Stark,
90909091
Eric Lawrence,
90919092
Eric Orth,
9093+
Espen Hovlandsdal,
90929094
François Marier,
90939095
Frank Ellerman,
90949096
Frederick Hirsch,

0 commit comments

Comments
 (0)