Here are a few options:
- Use the sharing link for the HTML file instead of the absolute URL (which ends with
.HTML
). Put the file in the Site Assets library and create a sharing link for it. - Use the modern Script editor web part to embed the ASPX file (as I tested HTML files get downloaded as well), or add the HTML source code directly.
In addition, here is a relative UserVoice post you can vote for if you have the same request: Use embed code to display an html page in a SiteAssets library.
If an Answer is helpful, please click "Accept Answer" and upvote it.
**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. **