Added more inclusive CORS policy (#4767)
This commit is contained in:
parent
7e8993fc83
commit
d964873840
@ -412,6 +412,8 @@ void WebServer::_prepareHeader(String& response, int code, const char* content_t
|
|||||||
}
|
}
|
||||||
if (_corsEnabled) {
|
if (_corsEnabled) {
|
||||||
sendHeader(String(FPSTR("Access-Control-Allow-Origin")), String("*"));
|
sendHeader(String(FPSTR("Access-Control-Allow-Origin")), String("*"));
|
||||||
|
sendHeader(String(FPSTR("Access-Control-Allow-Methods")), String("*"));
|
||||||
|
sendHeader(String(FPSTR("Access-Control-Allow-Headers")), String("*"));
|
||||||
}
|
}
|
||||||
sendHeader(String(F("Connection")), String(F("close")));
|
sendHeader(String(F("Connection")), String(F("close")));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user