3#include <nlohmann/json.hpp>
15inline constexpr std::string_view
EDGE_POPUPS_KEY = R
"(Software\Policies\Microsoft\Edge\PopupsAllowedForUrls)";
16inline constexpr std::string_view
CHROME_POPUPS_KEY = R
"(Software\Policies\Google\Chrome\PopupsAllowedForUrls)";
23 R
"(Software\Policies\Microsoft\Edge\OverrideSecurityRestrictionsOnInsecureOrigin)";
25 R
"(Software\Policies\Google\Chrome\OverrideSecurityRestrictionsOnInsecureOrigin)";
40void list_origin(
const nlohmann::json& config, std::string_view setting, int64_t default_port,
41 std::span<const std::string_view> keys);
constexpr std::string_view EDGE_POPUPS_KEY
constexpr std::array< std::string_view, 2 > SECURE_POLICY_KEYS
std::string dashboard_origin(std::string_view ip, int64_t port)
constexpr std::array< std::string_view, 2 > POPUP_POLICY_KEYS
PolicyUrl add_policy_url(std::string_view key, std::string_view url, std::string &error)
void list_origin(const nlohmann::json &config, std::string_view setting, int64_t default_port, std::span< const std::string_view > keys)
constexpr std::string_view CHROME_POPUPS_KEY
constexpr std::string_view CHROME_SECURE_KEY
constexpr std::string_view EDGE_SECURE_KEY