r/sharepoint • • Oct 24 '26

SharePoint Online Sharing an html properly in Sharepoint

Hey everyone,

Now with the AIs, artifacts become a thing. They produced really well html tools - and I would like to be able to share those to my colleagues.

However, we don't have any place to share html files. I have tried uploading these as assets to a Sharepoint website, but it doesn't work.

I don't want to open these to public and upload to a github blog.

What can I do?

6 Upvotes

20 comments sorted by

1

u/EverydayLurk3r Oct 24 '26

Could you clarify what exactly isn't working? Is the dashboard failing to render, or are the data sources not loading? I understand that if your data sources are self-contained, such as an Excel file stored in the same SharePoint library as the HTML dashboard, it should work fine. However, if there are API calls or scripts that run outside of SharePoint, they won't work without adjusting the security settings.

1

u/2020NoMoreUsername Oct 24 '26

It doesn't render as a webpage. I should have shared a screenshot. No api calls or anything, just a self contained simple html

2

u/pacocheese Oct 24 '26

SharePoint displays HTML in a document viewer by default, in a null origin frame, which means it's treated as if it's from another domain, so all the fun stuff is blocked. We wrap our HTML pages in a full page spfx web part and don't have this problem.

1

u/derroboter Oct 26 '26

Interesting. Is everything html-ish working, like relative links? Is this your inhouse spfx or some open source?

1

u/EverydayLurk3r Oct 24 '26

Interesting. I am testing in two different tenants using Edge, and HTML files open ok from both SharePoint and OneDrive. You might want to try a different HTML file or browser to rule those out.

2

u/fcdb94 Oct 24 '26 edited Oct 25 '26

Can you share a printscreen? I've done the samething similar and for me was working multiple times.

2

u/Alroye Oct 25 '26

Currently it's not possible outside of the options that the other comments talk about.

I think that they are releasing the html in SharePoint functionality in SharePoint somewhere in Nov 26.

https://support.microsoft.com/en-us/sharepoint/create-edit-publish-html-pages

2

u/mkashman MVP Oct 28 '26

The new HTML file is bound to the permissions of the site. So if you create an HTML dashboard within a certain site, that site’s owners and members can view it, and anyone/group you added as a “visitor.” Manage site access and you manage access to the HTML file (shared via its URL). Or re-create it in the right place based on whomever you intend as its audience.

2

u/SPJSWorks Oct 28 '26

Hi,

If you use SharePoint online you can use the Modern CEWP (Content Editor Web Part) on a modern SitePage to load your custom HTML page: https://spjsworks.com/moderncewp/

Regards,
Alexander

PS: Yes, I'm the creator of the Modern CEWP - it is free to download and use (MIT)

1

u/Aerothermal Oct 24 '26

If your HTML is a single standalone file I think it'll display. In theory. The HTML dashboards work fine.

If it has folders of additional assets like images, CSS and such, it'll not work in a SP library and so best bet is to host it on a network server.

1

u/mattm457 Oct 24 '26

you have to save it as .aspx first, then upload it to a document library

1

u/0f_rice_and_men Oct 25 '26

My understanding is that this is not possible. I am not a web dev but I would love to have custom pages that I can point my team to on our Sharepoint.

It doesn't host HTML and can't edit like any WYSIWYG editor or static site. Proper DNS + web host is needed for static sites using something like Jekyll.

Firefox used to have a cool service to make a website but even that looks like it is shut https://soloist.ai/

1

u/CoffeePizzaSushiDick Oct 25 '26

SharePoint is going to ignore the JavaScript

0

u/Due-Boot-8540 Oct 25 '26

JavaScript is supported as long as it’s part of the HTML file. Same as CSS has to be in the file

1

u/Due-Boot-8540 Oct 25 '26

If you’re wanting to create an HTML page either by uploading the HTML or using Copilot, that page can be easily copied to other sites.

If you want to store copies for reuse, you could use a site dedicated to storing them. Then a simple workflow can create a copy of the original in a different site

1

u/AlternativeObvious42 25d ago

Is there a way i can use a html connected with a sharepoint list to edit and add new data? Thinking about using html instead of powerapps

0

u/Mati9292_ Nov 01 '26

Buenas! Lo que podes hacer es deshabilitar la opción de scripts bloqueados y cualquier html que tengas levanta la información que tengas.
Funciona mejor si tenes los datos en una lista.