Skip to content

Commit 2199fd3

Browse files
committed
CORS: Safelist Last-Event-ID
https://bugs.webkit.org/show_bug.cgi?id=289396 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. Reviewed by NOBODY (OOPS!). Adds another rule for `Last-Event-ID` that checks for CORS-unsafe request header bytes. * Source/WebCore/platform/network/HTTPParsers.cpp: (WebCore::isCrossOriginSafeRequestHeader):
1 parent efa4ede commit 2199fd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/WebCore/platform/network/HTTPParsers.cpp

+4
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)