diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp index 6aef30ac4d8674c5ee1bd078c82e615955b10aa8..de1f03c4d3ef464c8a9a226b7a1063d1a9969618 100644 --- a/src/dht_proxy_server.cpp +++ b/src/dht_proxy_server.cpp @@ -64,6 +64,7 @@ DhtProxyServer::DhtProxyServer(std::shared_ptr<DhtRunner> dht, in_port_t port) auto settings = std::make_shared<restbed::Settings>(); settings->set_default_header("Content-Type", "application/json"); settings->set_default_header("Connection", "keep-alive"); + settings->set_default_header("Access-Control-Allow-Origin", "*"); std::chrono::milliseconds timeout(std::numeric_limits<int>::max()); settings->set_connection_timeout(timeout); // there is a timeout, but really huge settings->set_port(port);