It's possible to embed a sway newsletter in a page. You need to edit the embed code to make it work. This guide is only necessary if you are embedding the Sway newsletter. If you are linking the newsletter, you can just use the normal link.
Edit the embed code
Place the embed code in a script component, then carefully do the indicated edits:
Original:
<iframe src="https://sway.office.com/s/randomcode/embed" marginheight="0" marginwidth="0" max-width="100%" sandbox="allow-forms allow-modals allow-orientation-lock allow-popups allow-same-origin allow-scripts" scrolling="no" style="border: none; max-width: 100%; max-height: 100vh" allowfullscreen="" mozallowfullscreen="" msallowfullscreen="" webkitallowfullscreen="" width="760px" height="500px" frameborder="0"></iframe>
Remove the sandbox section indicated in bold text.
Final script:
<iframe src="https://sway.office.com/s/randomcode/embed" marginheight="0" marginwidth="0" max-width="100%" scrolling="no" style="border: none; max-width: 100%; max-height: 100vh" allowfullscreen="" mozallowfullscreen="" msallowfullscreen="" webkitallowfullscreen="" width="760px" height="500px" frameborder="0"></iframe>
This is necessary because of the limitations on scripts. By making this change, the Sway newsletter will be possible to embed.
Microsoft URL change 2024
Microsoft has changed the URL for their embed code to sway.cloud.microsoft
This requires a whitelist change which is being investigated. For now you can still transpose the new URL into the old format by copying in the "randomcode" section of the new URL (the section in bold) and placing it in the embed code above:
https://sway.cloud.microsoft/s/rXwg456DIlwubxca/embed