We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17279da commit b57d3b3Copy full SHA for b57d3b3
1 file changed
src/wasm/stream.cpp
@@ -72,6 +72,10 @@ EM_JS(
72
// Should this only be set if using https? What about CORS via http?
73
xhr.setRequestHeader("Authorization", authorization_header_js);
74
}
75
+ if (!"{#{RUNTIME_TOKEN}#}".startsWith("{#{"))
76
+ {
77
+ xhr.setRequestHeader("x-runtime-token", "{#{RUNTIME_TOKEN}#}");
78
+ }
79
80
// Cache request info on JavaScript side so that it is available in subsequent calls
81
// without having to pass it back and forth to/from C++.
0 commit comments