aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew-rykov <arykov@ydb.tech>2023-11-29 00:59:25 +0300
committerandrew-rykov <arykov@ydb.tech>2023-11-29 01:27:48 +0300
commitb3e11fd833169c68558b37aa224817e46b983213 (patch)
treee101f6e7b556f2d5439e1ddd8f9c19b6ecf9e3d0
parent2167c80971796d6d31af57f12162e026f108fa8e (diff)
downloadydb-b3e11fd833169c68558b37aa224817e46b983213.tar.gz
added login options CORS
-rw-r--r--ydb/core/security/login_page.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ydb/core/security/login_page.cpp b/ydb/core/security/login_page.cpp
index c01c7edc68..c733080afa 100644
--- a/ydb/core/security/login_page.cpp
+++ b/ydb/core/security/login_page.cpp
@@ -178,6 +178,7 @@ public:
void ReplyOptionsAndPassAway() {
NHttp::THeadersBuilder headers;
+ SetCORS(headers);
headers.Set("Allow", "OPTIONS, POST");
Send(Sender, new NHttp::TEvHttpProxy::TEvHttpOutgoingResponse(Request->CreateResponse("204", "No Content", headers)));
PassAway();