Office.js dialog box 'X' close button missing when using Exchange Server in an offline environment

Raghunandan Kumbhar 20 Reputation points
2025-07-22T10:37:42.6333333+00:00

I have an add-in which I am running in an Exchange Server 2019 setup. The setup is completely offline, so I am hosting Office.js assets locally.

When I try to open an Office.js dialog, the 'X' close button at the top right corner of the dialog box is missing. It instead gets replaced by an empty box.

If used in an online (i.e. when the end user has internet access) with the same setup, I can see the 'X' button.

Any fixes around this will be greatly appreciated. Do let me know if any further information is required from me.

Exchange | Exchange Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hin-V 2,075 Reputation points Microsoft External Staff Moderator
    2025-07-22T12:10:18.0233333+00:00

    Hi @Raghunandan Kumbhar

    Thank you for posting your question in Microsoft Q&A. 

    Based on your description, I understand you have considered to configure the "X" button on Office.js dialog in Exchange sever 2019 . We are glad to assist you this part. 

    From my perspective, an offline setup might not being fully configured, which can cause elements like the "X" (close) button in the Office.js dialog to appear as an empty box.

    If it possible, could you refer Use the Office dialog API in your Office Add-ins - Office Add-ins | Microsoft Learn to close this dialog via js: 

    dialog.close(); 
    
    

    I have found relevant article that might help: 

    Dialog - Office UI Fabric JS

    If we are misunderstanding or haven't reach out your main point, please let me know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".      

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.