tdf#122451 CSP: Allow all ports of known hosts

Change-Id: I9cf628ffc3920c87187bac3d17e5036e3c7278fc
Reviewed-on: https://gerrit.libreoffice.org/65998
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp
index 10e963d..b1cd9af 100644
--- a/wsd/FileServer.cpp
+++ b/wsd/FileServer.cpp
@@ -686,7 +686,7 @@
    std::string frameAncestors = configFrameAncestor;
    Poco::URI uriHost(host);
    if (uriHost.getHost() != configFrameAncestor)
        frameAncestors += " " + uriHost.getHost();
        frameAncestors += " " + uriHost.getHost() + ":*";

    for (const auto& param : params)
    {
@@ -699,7 +699,7 @@
            wopiFrameAncestor = uriWopiFrameAncestor.getHost();
            if (wopiFrameAncestor != uriHost.getHost() && wopiFrameAncestor != configFrameAncestor)
            {
                frameAncestors += " " + wopiFrameAncestor;
                frameAncestors += " " + wopiFrameAncestor + ":*";
                LOG_TRC("Picking frame ancestor from WOPISrc: " << wopiFrameAncestor);
            }
            break;