mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 13:46:37 +00:00
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("/u2", HTTP_POST, HandleUploadDone, HandleUploadLoop);
|
||||
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);
|
||||
#ifndef FIRMWARE_MINIMAL
|
||||
WebServer->on("/cn", HandleConfiguration);
|
||||
|
Loading…
x
Reference in New Issue
Block a user