Fix Microsoft Sway Link Refused to Connect on Websites
Question details
Users need to resolve an issue where a public Microsoft Sway link fails to open when embedded on a website or in a Power BI app.

- Product
- Microsoft Sway
- Device & OS
- not provided
- Scenario
- Embedding or linking a Sway presentation on an external website or within a Power BI application.
- Observed behavior
- The Sway embed frame or link displays a 'Refused to connect' error instead of loading the presentation.
Before troubleshooting the embedding environment, copy the Sway link and test it directly in an incognito or private web browser tab to ensure the presentation itself is active and publicly accessible.
Verify Direct Access and Contact Microsoft Support
Since this error often stems from server-side security policies restricting cross-origin framing, you need to verify the direct link and collect network logs for Microsoft Support.
When an embed refuses to connect while the direct link works, it typically indicates an iframe restriction (like X-Frame-Options or Content Security Policy) enforced by the hosting server or Microsoft's backend.
To resolve this, you will need to capture the network failure using Developer Tools and escalate the issue to the Microsoft 365 admin center.
Paste the Sway presentation URL into a new browser tab. If it successfully loads, the issue is specifically related to how the target platform (like Power BI or your website) handles the embed.
Open your browser's Developer Tools by pressing F12. Navigate to the 'Network' tab, ensure 'Preserve log' is checked, and reload the webpage where the 'Refused to connect' error occurs. Right-click the network requests list and select 'Save all as HAR with content'.
Log into the Microsoft 365 admin center using an administrator account. Navigate to 'Support' > 'Help & support', describe the embedding issue, and attach the exported HAR log file to open a service request.

Create and Share Presentations Seamlessly with WPS Office
If you are frustrated by complex embedding restrictions and 'Refused to connect' errors in Microsoft Sway, try WPS Office. It provides a lightweight, completely free alternative for creating professional presentations that you can easily share or export without server-side iframe issues.
- 1. Download and Install WPS Office: Visit the official WPS website to download and install the free suite on your PC or mobile device.
- 2. Create Your Presentation: Open WPS Presentation and choose from thousands of free templates or start your design from scratch.
- 3. Share with Ease: Click the 'Share' button in the top right corner to generate a stable public link, or select 'Export to PDF' for flawless offline sharing.

Frequently Asked Questions
Why does my embedded Sway say 'Refused to connect'?
This error generally happens when browser security settings or the host website's server block cross-origin iframes. It can also occur if Microsoft's servers temporarily restrict the embed source in external apps like Power BI.
How do I correctly embed a Sway presentation on a website?
Open your Sway, click the 'Share' button in the top right corner, select 'Anyone with a link', and then click 'Get embed code'. Copy the provided iframe code and paste it into the HTML viewer of your website.
What are HAR logs and why does Microsoft Support need them?
HAR (HTTP Archive) logs record all network requests between your browser and the website. Microsoft Support uses them to pinpoint exactly which server policy or network connection is failing during the embedding process.




