diff --git a/src/meshwifi/meshhttp.cpp b/src/meshwifi/meshhttp.cpp index a05d3d62..bba6db6d 100644 --- a/src/meshwifi/meshhttp.cpp +++ b/src/meshwifi/meshhttp.cpp @@ -379,7 +379,11 @@ void handleAPIv1ToRadio(HTTPRequest *req, HTTPResponse *res) */ // Status code is 200 OK by default. - res->setHeader("Content-Type", "application/x-protobuf"); + + if (req->getMethod() != "OPTIONS") { + res->setHeader("Content-Type", "application/x-protobuf"); + } + res->setHeader("Access-Control-Allow-Origin", "*"); res->setHeader("Access-Control-Allow-Methods", "PUT, OPTIONS");