Others

Fix Microsoft Sway Link Refused to Connect on Websites

Huda QurayshiHuda Qurayshi Oct 8, 2026 868 views

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.

How to Fix Microsoft Sway Link 'Refused to Connect' Error
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 you start

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.

Solution 1Recommended

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.

1
Test the Sway link directly

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.

2
Collect HAR logs

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'.

3
Submit a support ticket

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.

Verify Direct Access and Contact Microsoft Support
Check embed code format: Ensure you are using the dedicated iframe embed code provided in Sway's 'Share' > 'Get embed code' menu, rather than just pasting the standard sharing URL into an iframe tag.
Free Microsoft Office alternative

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. 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. 2. Create Your Presentation: Open WPS Presentation and choose from thousands of free templates or start your design from scratch.
  3. 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.
Highly compatible with Microsoft PowerPoint (.ppt, .pptx) formats.Export presentations directly to PDF to avoid website embedding errors.Lightweight software with a familiar, user-friendly interface.Completely free to use with thousands of rich built-in templates.
microsoft office alternative - wps office

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.