mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 07:39:01 +08:00
Allow to send web command from another server if enabled
mainly for camera html hosted on another server
This commit is contained in:
parent
7e9f785d47
commit
d40c62cb53
@ -199,6 +199,9 @@ size_t ESP3DOutput::printMSG(const char * s)
|
||||
if (_webserver) {
|
||||
if (!_headerSent && !_footerSent) {
|
||||
_webserver->sendHeader("Cache-Control","no-cache");
|
||||
#ifdef ESP_ACCESS_CONTROL_ALLOW_ORIGIN
|
||||
_webserver->sendHeader("Access-Control-Allow-Origin", "*");
|
||||
#endif //ESP_ACCESS_CONTROL_ALLOw_ORIGIN
|
||||
_webserver->send (_code, "text/plain", s);
|
||||
_headerSent = true;
|
||||
_footerSent = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user