From d765397bd925e6527fc9166dd800f2927306c0a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 24 May 2019 23:38:44 +0200 Subject: [PATCH] Revert PR test --- code/espurna/config/general.h | 2 +- code/espurna/ws.ino | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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);