Skip to content

Commit 3ab5a95

Browse files
authored
Add X-Trace-Verbosity header for tracing (#7183)
1 parent c113fcf commit 3ab5a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ydb/core/viewer/viewer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ class TViewer : public TActorBootstrapped<TViewer>, public IViewer {
541541
"HTTP/1.1 204 No Content\r\n"
542542
"Access-Control-Allow-Origin: " + AllowOrigin + "\r\n"
543543
"Access-Control-Allow-Credentials: true\r\n"
544-
"Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept\r\n"
544+
"Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept,X-Trace-Verbosity,X-Want-Trace\r\n"
545545
"Access-Control-Allow-Methods: OPTIONS, GET, POST\r\n"
546546
"Allow: OPTIONS, GET, POST\r\n"
547547
"Content-Type: " + type + "\r\n"
@@ -553,7 +553,7 @@ class TViewer : public TActorBootstrapped<TViewer>, public IViewer {
553553
"HTTP/1.1 204 No Content\r\n"
554554
"Access-Control-Allow-Origin: " + origin + "\r\n"
555555
"Access-Control-Allow-Credentials: true\r\n"
556-
"Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept\r\n"
556+
"Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept,X-Trace-Verbosity,X-Want-Trace\r\n"
557557
"Access-Control-Allow-Methods: OPTIONS, GET, POST\r\n"
558558
"Allow: OPTIONS, GET, POST\r\n"
559559
"Content-Type: " + type + "\r\n"
@@ -672,7 +672,7 @@ void TViewer::FillCORS(TStringBuilder& stream, const TRequestState& request) {
672672
if (origin) {
673673
stream << "Access-Control-Allow-Origin: " << origin << "\r\n"
674674
<< "Access-Control-Allow-Credentials: true\r\n"
675-
<< "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept\r\n"
675+
<< "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept,X-Trace-Verbosity,X-Want-Trace\r\n"
676676
<< "Access-Control-Allow-Methods: OPTIONS, GET, POST\r\n";
677677
}
678678
}

0 commit comments

Comments
 (0)