Closed justmars closed 1 year ago
Apparently, my localhost was serving the dialog url ('https://localhost:3000/test') with the response header Cross-Origin-Opener-Policy: same-origin-allow-popups
. Once i switched this off, the dialog url was able to properly load the OfficeJS reference in the head.
Bug Report
Expected behavior:
With the following snippet on scriptlab:
This ought to be visible on the dialog box after
Office.context.ui.displayDialogAsync
runs:Actual behavior:
In Office for Web, the dialog window immediately closes upon opening. But if I remove
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>
, the dialog window remains open.Note that in desktop Mac, the dialog window remains open.
Steps to Reproduce:
https://localhost:3000/test
with html indicated under Expected behavior