mirror of https://github.com/arendst/Tasmota.git
Merge pull request #5852 from tiberiuana/console-cors
Add CORS preflight support to console URL
This commit is contained in:
commit
644d89c509
|
@ -480,7 +480,8 @@ void StartWebserver(int type, IPAddress ipweb)
|
||||||
WebServer->on("/u1", HandleUpgradeFirmwareStart); // OTA
|
WebServer->on("/u1", HandleUpgradeFirmwareStart); // OTA
|
||||||
WebServer->on("/u2", HTTP_POST, HandleUploadDone, HandleUploadLoop);
|
WebServer->on("/u2", HTTP_POST, HandleUploadDone, HandleUploadLoop);
|
||||||
WebServer->on("/u2", HTTP_OPTIONS, HandlePreflightRequest);
|
WebServer->on("/u2", HTTP_OPTIONS, HandlePreflightRequest);
|
||||||
WebServer->on("/cs", HandleConsole);
|
WebServer->on("/cs", HTTP_GET, HandleConsole);
|
||||||
|
WebServer->on("/cs", HTTP_OPTIONS, HandlePreflightRequest);
|
||||||
WebServer->on("/cm", HandleHttpCommand);
|
WebServer->on("/cm", HandleHttpCommand);
|
||||||
#ifndef FIRMWARE_MINIMAL
|
#ifndef FIRMWARE_MINIMAL
|
||||||
WebServer->on("/cn", HandleConfiguration);
|
WebServer->on("/cn", HandleConfiguration);
|
||||||
|
|
Loading…
Reference in New Issue