mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
some minor formatting
This commit is contained in:
@@ -14,7 +14,7 @@ AuthenticationService::AuthenticationService(AsyncWebServer * server, SecurityMa
|
||||
}
|
||||
|
||||
/**
|
||||
* Verifys that the request supplied a valid JWT.
|
||||
* Verifies that the request supplied a valid JWT.
|
||||
*/
|
||||
void AuthenticationService::verifyAuthorization(AsyncWebServerRequest * request) {
|
||||
Authentication authentication = _securityManager->authenticateRequest(request);
|
||||
|
||||
@@ -40,6 +40,11 @@ ESP8266React::ESP8266React(AsyncWebServer * server, FS * fs)
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// only added for local testing (CORS)
|
||||
// DefaultHeaders::Instance().addHeader("Access-Control-Allow-Headers", "Accept, Content-Type, Authorization");
|
||||
// DefaultHeaders::Instance().addHeader("Access-Control-Allow-Credentials", "true");
|
||||
// DefaultHeaders::Instance().addHeader("Access-Control-Allow-Origin", "*");
|
||||
}
|
||||
|
||||
void ESP8266React::begin() {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <WiFi.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include <AsyncJson.h> // TODO needed for AsyncJsonResponse
|
||||
#include <AsyncJson.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
|
||||
#define MAX_FEATURES_SIZE 256
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <ArduinoJsonJWT.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <ESPUtils.h>
|
||||
#include <AsyncJson.h> // TODO neede for AsyncJsonResponse
|
||||
#include <AsyncJson.h>
|
||||
#include <list>
|
||||
|
||||
#ifndef FACTORY_JWT_SECRET
|
||||
|
||||
Reference in New Issue
Block a user