Skip to content

Commit 4384cb3

Browse files
committed
Add Last-Event-ID to CORS-safelisted headers.
https://bugs.webkit.org/show_bug.cgi?id=289396 Reviewed by NOBODY (OOPS!). This change has been discussed in whatwg/fetch#568 and the proposed spec change is available at whatwg/fetch#568 Changes to web platform tests that reflect the change are also available at web-platform-tests/wpt#49257, thus no change to tests in this PR. * Source/WebCore/platform/network/HTTPParsers.cpp: (WebCore::isCrossOriginSafeRequestHeader):
1 parent efa4ede commit 4384cb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/WebCore/platform/network/HTTPParsers.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,10 @@ bool isCrossOriginSafeRequestHeader(HTTPHeaderName name, const String& value)
962962
return false;
963963
break;
964964
}
965+
case HTTPHeaderName::LastEventID:
966+
if (containsCORSUnsafeRequestHeaderBytes(value))
967+
return false;
968+
break;
965969
case HTTPHeaderName::Range:
966970
long long start;
967971
long long end;

0 commit comments

Comments
 (0)