Skip to content

Updated the OPTIONS handler to return a 204#42

Open
mhbdev wants to merge 1 commit intoTelegramMessenger:mainfrom
mhbdev:fix/client-options-204
Open

Updated the OPTIONS handler to return a 204#42
mhbdev wants to merge 1 commit intoTelegramMessenger:mainfrom
mhbdev:fix/client-options-204

Conversation

@mhbdev
Copy link

@mhbdev mhbdev commented Jan 6, 2026

Updated the OPTIONS handler to return a 204 with an empty payload while preserving the CORS headers, so preflight requests no longer get a 200/HTML body.

closes #41

…le preserving the CORS headers, so preflight requests no longer get a 200/HTML body
@@ -370,9 +370,19 @@ void ClientRunner::receive_http_request(
std::unique_ptr<ton::http::HttpRequest> request, std::shared_ptr<ton::http::HttpPayload> payload,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runners/client/ClientRunner.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return 204 for CORS preflight OPTIONS in client HTTP handler

3 participants

Comments