none
office apps with connexion to internet RRS feed

  • Question

  • Hello All

    My company is developping a javascript office add-in, and it DOES not want this add-in to access the internet. I would like to know how to remove these references (We have already removed other references like appsforoffice.microsoft.com)

    - telemetryservice.firstpartyapps.oaspapps.com

    - http://crl.microsoft.com/pki/crl/products

    Thanks for your help

    Sunday, January 15, 2017 10:23 AM

All replies

  • HI xmadou,

    I think you could not remove these reference. For telemetryservice.firstpartyapps.oaspapps.com, you could find it in powerpoint-win32-16.00.debug.js, you could refer below code,

        var ULSEndpointProxy = (function () {
            function ULSEndpointProxy() {
                var _this = this;
                this.proxyFrame = null;
                this.telemetryEndPoint = "https://telemetryservice.firstpartyapps.oaspapps.com/telemetryservice/telemetryproxy.html";
                this.buffer = [];
                this.proxyFrameReady = false;
                OSF.OUtil.addEventListener(window, "message", function (e) {
                    return _this.tellProxyFrameReady(e);
                });
    
                setTimeout(function () {
                    _this.loadProxyFrame();
                }, 3000);
            }
            ULSEndpointProxy.prototype.writeLog = function (log) {
                if (this.proxyFrameReady === true) {
                    this.proxyFrame.contentWindow.postMessage(log, "*");
                } else {
                    if (this.buffer.length < 128) {
                        this.buffer.push(log);
                    }
                }
            };
            ULSEndpointProxy.prototype.loadProxyFrame = function () {
                if (this.proxyFrame == null) {
                    this.proxyFrame = document.createElement("iframe");
                    this.proxyFrame.setAttribute("style", "display:none");
                    this.proxyFrame.setAttribute("src", this.telemetryEndPoint);
                    document.head.appendChild(this.proxyFrame);
                }
            };
    
            ULSEndpointProxy.prototype.tellProxyFrameReady = function (e) {
                var _this = this;
                if (e.data === "ProxyFrameReadyToLog") {
                    this.proxyFrameReady = true;
                    for (var i = 0; i < this.buffer.length; i++) {
                        this.writeLog(this.buffer[i]);
                    }
    
                    this.buffer.length = 0;
    
                    OSF.OUtil.removeEventListener(window, "message", function (e) {
                        return _this.tellProxyFrameReady(e);
                    });
                } else if (e.data === "ProxyFrameReadyToInit") {
                    var initJson = { appName: "Office APPs", sessionId: OSF.OUtil.Guid.generateNewGuid() };
                    var initStr = JSON.stringify(initJson);
                    this.proxyFrame.contentWindow.postMessage(initStr, "*");
                }
            };
            return ULSEndpointProxy;
        })();
    

    It might make your Add in broken.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, January 16, 2017 8:59 AM
  • Thanks Edward
    Tuesday, January 17, 2017 1:28 PM
  • Hi xmadou,

    If there is no other issue, I would suggest you mark the helpful reply as answer to close this thread.

    If you have any other new issues, please feel free to post in this forum.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, January 18, 2017 5:20 AM