diff --git a/MediaServer/MediaServer.cpp b/MediaServer/MediaServer.cpp index fd6525f..91b26b1 100644 --- a/MediaServer/MediaServer.cpp +++ b/MediaServer/MediaServer.cpp @@ -2,7 +2,6 @@ #include "BoostLog.h" #include "Network/TcpServer.h" #include "Rtsp/RtspSession.h" -#include class MediaServerPrivate { public: diff --git a/Server/Live2dBackend.cpp b/Server/Live2dBackend.cpp index cdcffcf..bdbc37b 100644 --- a/Server/Live2dBackend.cpp +++ b/Server/Live2dBackend.cpp @@ -39,7 +39,7 @@ Live2dBackend::Live2dBackend() { std::make_tuple(http::status::ok, request.version())}; res.set(http::field::server, BOOST_BEAST_VERSION_STRING); res.set(http::field::content_type, ResponseUtility::mimeType(path)); - res.set(http::field::access_control_allow_origin, "*"); + // res.set(http::field::access_control_allow_origin, "*"); res.content_length(size); res.keep_alive(request.keep_alive()); session.reply(std::move(res)); diff --git a/resource/build.sh b/resource/build.sh index 984b29c..e5fbc09 100755 --- a/resource/build.sh +++ b/resource/build.sh @@ -3,7 +3,7 @@ base_path=$(pwd) build_path=${base_path}/build libraries_root="/opt/Libraries" -server_location=/root/HttpServer +server_location=/root/Server if command -v cmake >/dev/null 2>&1; then cmake_exe=cmake