diff --git a/rest_server.cpp b/rest_server.cpp index 229e090..e00e104 100644 --- a/rest_server.cpp +++ b/rest_server.cpp @@ -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++) { @@ -729,4 +729,4 @@ boolean RestServer::match_eol_char(char _new_char) { if (_new_char == eol_sequence[i]) return true; } return false; -} \ No newline at end of file +}