Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/wasm/stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ EM_JS(
// Should this only be set if using https? What about CORS via http?
xhr.setRequestHeader("Authorization", authorization_header_js);
}
if (!"{#{RUNTIME_TOKEN}#}".startsWith("{#{"))
{
xhr.setRequestHeader("x-runtime-token", "{#{RUNTIME_TOKEN}#}");
}

// Cache request info on JavaScript side so that it is available in subsequent calls
// without having to pass it back and forth to/from C++.
Expand Down