diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index efd63ec2..523c86d9 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -531,7 +531,7 @@ // there are no special requirements. Any static web server will do (NGinx, Apache, Lighttpd,...). // The only requirement is that the resource must be available under this domain. #ifndef WEB_REMOTE_DOMAIN -#define WEB_REMOTE_DOMAIN "*" +#define WEB_REMOTE_DOMAIN "http://espurna.io" #endif // ----------------------------------------------------------------------------- diff --git a/code/espurna/ws.ino b/code/espurna/ws.ino index 333fc254..07a86774 100644 --- a/code/espurna/ws.ino +++ b/code/espurna/ws.ino @@ -559,9 +559,7 @@ void wsSetup() { // CORS #ifdef WEB_REMOTE_DOMAIN DefaultHeaders::Instance().addHeader("Access-Control-Allow-Origin", WEB_REMOTE_DOMAIN); - if (strcmp(WEB_REMOTE_DOMAIN, "*")) { - DefaultHeaders::Instance().addHeader("Access-Control-Allow-Credentials", "true"); - } + DefaultHeaders::Instance().addHeader("Access-Control-Allow-Credentials", "true"); #endif webServer()->on("/auth", HTTP_GET, _onAuth);