Skip to content

Commit

Permalink
Added CORS header to WebClient responses
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Jan 22, 2024
1 parent 6084a3a commit 6b4cec1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FluidNC/src/WebUI/WebClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace WebUI {
// so no need to do it explicitly
// _webserver->sendHeader("Content-Type", "text/html");
_webserver->sendHeader("Cache-Control", "no-cache");
_webserver->sendHeader("Access-Control-Allow-Origin:", "*");
_webserver->send(200);
_header_sent = true;
}
Expand Down

0 comments on commit 6b4cec1

Please sign in to comment.