Skip to content

Commit 8c41032

Browse files
authored
Merge pull request #6297 from cloudflare/tewaro/add-origin-header
feat: Add origin header to ThreadContext::HeaderIdBundle for internal…
2 parents e3e9c1c + 9df0276 commit 8c41032

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/workerd/io/io-thread-context.c++

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ ThreadContext::HeaderIdBundle::HeaderIdBundle(kj::HttpHeaderTable::Builder& buil
2525
contentLength(builder.add("Content-Length")),
2626
accept(builder.add("Accept")),
2727
acceptEncoding(builder.add("Accept-Encoding")),
28-
cfRay(builder.add("CF-Ray")) {}
28+
cfRay(builder.add("CF-Ray")),
29+
origin(builder.add("Origin")) {}
2930

3031
ThreadContext::ThreadContext(kj::Timer& timer,
3132
kj::EntropySource& entropySource,

src/workerd/io/io-thread-context.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class ThreadContext {
3636
const kj::HttpHeaderId accept; // used in tracing instrumentation
3737
const kj::HttpHeaderId acceptEncoding; // used in tracing instrumentation
3838
const kj::HttpHeaderId cfRay; // used in tracing instrumentation
39+
const kj::HttpHeaderId origin;
3940
};
4041

4142
ThreadContext(kj::Timer& timer,

0 commit comments

Comments
 (0)