From 71fdf324b14be31f797ca9ac720a92bebd76e8c8 Mon Sep 17 00:00:00 2001 From: Anton Standrik Date: Mon, 29 Jul 2024 12:49:44 +0300 Subject: [PATCH] Add X-Trace-Verbosity header for tracing see https://github.com/ydb-platform/ydb-embedded-ui/pull/1068 --- ydb/core/viewer/viewer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ydb/core/viewer/viewer.cpp b/ydb/core/viewer/viewer.cpp index 675c1e392faa..0a833368f5ea 100644 --- a/ydb/core/viewer/viewer.cpp +++ b/ydb/core/viewer/viewer.cpp @@ -541,7 +541,7 @@ class TViewer : public TActorBootstrapped, public IViewer { "HTTP/1.1 204 No Content\r\n" "Access-Control-Allow-Origin: " + AllowOrigin + "\r\n" "Access-Control-Allow-Credentials: true\r\n" - "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept\r\n" + "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept,X-Trace-Verbosity\r\n" "Access-Control-Allow-Methods: OPTIONS, GET, POST\r\n" "Allow: OPTIONS, GET, POST\r\n" "Content-Type: " + type + "\r\n" @@ -553,7 +553,7 @@ class TViewer : public TActorBootstrapped, public IViewer { "HTTP/1.1 204 No Content\r\n" "Access-Control-Allow-Origin: " + origin + "\r\n" "Access-Control-Allow-Credentials: true\r\n" - "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept\r\n" + "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept,X-Trace-Verbosity\r\n" "Access-Control-Allow-Methods: OPTIONS, GET, POST\r\n" "Allow: OPTIONS, GET, POST\r\n" "Content-Type: " + type + "\r\n" @@ -672,7 +672,7 @@ void TViewer::FillCORS(TStringBuilder& stream, const TRequestState& request) { if (origin) { stream << "Access-Control-Allow-Origin: " << origin << "\r\n" << "Access-Control-Allow-Credentials: true\r\n" - << "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept\r\n" + << "Access-Control-Allow-Headers: Content-Type,Authorization,Origin,Accept,X-Trace-Verbosity\r\n" << "Access-Control-Allow-Methods: OPTIONS, GET, POST\r\n"; } }