How to display a website in a Word Add-in using http

sunyi zhou 20 Reputation points
2024-08-14T08:23:12.8666667+00:00

I'm trying to show a website in my Word Add-in. I was trying to use the <iframe> tag, like this:

<iframe src="http://www.example.com" style="width: 100%; height: 100%;" />

Although it can be shown when I directly open my home.html file in browser, it can not be displayed in my sideloaded add-in.

However, if I simply add an 's' in my url

<iframe src="https://www.example.com" style="width: 100%; height: 100%;" />

then it works fine, So I think the point is the http and https. But I have not found any description in the documentation said the Add-in only supports https and do not supports http url.

I have tried adding the URL to the <AppDomain> tag in my .xml file, but it did not fix the issue.

So I wonder how can I load the http website in my addin? Are there any options in Word to enable http domains?

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,321 questions
0 comments No comments
{count} votes

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.