Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit d964873

Browse filesBrowse files
authored
Added more inclusive CORS policy (espressif#4767)
1 parent 7e8993f commit d964873
Copy full SHA for d964873

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎libraries/WebServer/src/WebServer.cpp

Copy file name to clipboardExpand all lines: libraries/WebServer/src/WebServer.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ void WebServer::_prepareHeader(String& response, int code, const char* content_t
412412
}
413413
if (_corsEnabled) {
414414
sendHeader(String(FPSTR("Access-Control-Allow-Origin")), String("*"));
415+
sendHeader(String(FPSTR("Access-Control-Allow-Methods")), String("*"));
416+
sendHeader(String(FPSTR("Access-Control-Allow-Headers")), String("*"));
415417
}
416418
sendHeader(String(F("Connection")), String(F("close")));
417419

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.