Skip to content

Commit b5a68d4

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 5dfed9d commit b5a68d4

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

@@ -9125,6 +9126,7 @@ Emily Stark,
91259126
Eric Lawrence,
91269127
Eric Orth,
91279128
Feng Yu<!-- F3n67u; GitHub -->,
9129+
Espen Hovlandsdal<!-- rexxars; GitHub -->,
91289130
François Marier,
91299131
Frank Ellerman,
91309132
Frederick Hirsch,

0 commit comments

Comments
 (0)