diff --git a/nui/include/nui/window.hpp b/nui/include/nui/window.hpp index 66539ca..79c18d3 100644 --- a/nui/include/nui/window.hpp +++ b/nui/include/nui/window.hpp @@ -129,7 +129,9 @@ namespace Nui class Window { public: - constexpr static std::string_view windowsServeAuthority = "nuilocal"; + // Warning! app.example is intentional to avoid timeout issues. + // https://github.com/MicrosoftEdge/WebView2Feedback/issues/2381 + constexpr static std::string_view windowsServeAuthority = "app.example"; /** * @brief Construct a new Window object. diff --git a/nui/src/nui/backend/window.cpp b/nui/src/nui/backend/window.cpp index ad5a863..65ba76d 100644 --- a/nui/src/nui/backend/window.cpp +++ b/nui/src/nui/backend/window.cpp @@ -307,7 +307,7 @@ namespace Nui winImpl->setHtmlWorkaroundToken.emplace(); if (!windowsServeThroughAuthority) - windowsServeThroughAuthority = "nuilocal"s; + windowsServeThroughAuthority = std::string{windowsServeAuthority}; const auto authority = *windowsServeThroughAuthority; const std::wstring filter = widenString("https://"s + authority + "/index.html");