We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f6d82 commit 30c6abbCopy full SHA for 30c6abb
examples/server/server.cpp
@@ -2396,7 +2396,7 @@ int main(int argc, char ** argv) {
2396
// If this is OPTIONS request, skip validation because browsers don't include Authorization header
2397
if (req.method == "OPTIONS") {
2398
res.set_header("Access-Control-Allow-Credentials", "true");
2399
- res.set_header("Access-Control-Allow-Methods", "POST");
+ res.set_header("Access-Control-Allow-Methods", "GET, POST");
2400
res.set_header("Access-Control-Allow-Headers", "*");
2401
res.set_content("", "text/html"); // blank response, no data
2402
return httplib::Server::HandlerResponse::Handled; // skip further processing
0 commit comments