Skip to content

Commit

Permalink
Add last-event-id to CORS-safelisted request headers
Browse files Browse the repository at this point in the history
Since EventSource implementations in most environments already send this header
without CORS preflight request, it makes sense to make it a safelisted header.

Fixes #568
  • Loading branch information
rexxars committed Nov 19, 2024
1 parent bdb452e commit 76fc1a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@ is a <dfn export>CORS-safelisted request-header</dfn>, run these steps:

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

Expand Down

0 comments on commit 76fc1a2

Please sign in to comment.