Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rest_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ void RestServer::print_json(Stream &_client) {
}

void RestServer::print_resource_description(Stream &_client) {
print_flash_string(PSTR("HTTP/1.1 200 OK\r\nContent-Type: application/json\r\n\r\n"), _client);
print_flash_string(PSTR("HTTP/1.1 200 OK\r\nAccess-Control-Allow-Origin: *\r\nContent-Type: application/json\r\n\r\n"), _client);

print_flash_string(PSTR("[\r\n"), _client);
for(byte i = 0; i < int(resources_count); i++) {
Expand Down Expand Up @@ -729,4 +729,4 @@ boolean RestServer::match_eol_char(char _new_char) {
if (_new_char == eol_sequence[i]) return true;
}
return false;
}
}