logo
search
Sign-in & Login Problems

Fix Excel Iframe Prompting Microsoft 365 Sign-In in Private Browsing

Algirdas JasaitisAlgirdas Jasaitis Oct 21, 2026 868 views

Question details

The user needs to prevent an embedded Excel workbook from asking website visitors for a Microsoft 365 sign-in when they view the page in a private or incognito browsing window.

How to Fix Embedded Excel Prompting Microsoft 365 Sign-In in Private Browsing
Product
Microsoft Excel (Microsoft 365 Business Standard)
Device & OS
not provided
Scenario
Embedding an Excel workbook with an 'Anyone' sharing link into a website using an HTML iframe.
Observed behavior
The embedded spreadsheet displays perfectly in normal browsing but prompts the user to sign into a Microsoft 365 account when viewed in Chrome's private browsing (Incognito) mode.
Before you start

Verify that your Microsoft 365 Excel workbook is saved to OneDrive or SharePoint and that you have successfully generated an 'Anyone with the link can view' URL before embedding.

Solution 1Recommended

Adjust Browser Third-Party Cookie Settings

Allows the iframe to authenticate the public link by permitting essential Microsoft tracking cookies blocked by private browsing.

Private browsing modes, particularly Chrome Incognito, block third-party cookies by default. Because the embedded Excel iframe relies on Microsoft domains to verify the anonymous public access token, blocking these cookies causes the system to fallback to a sign-in prompt.

1
Open Browser Privacy Settings

In Google Chrome, click the three-dot menu in the top right corner and select 'Settings'. Navigate to the 'Privacy and security' tab on the left sidebar.

2
Modify Cookie Permissions

Click on 'Third-party cookies'. Change the setting from 'Block third-party cookies' to 'Allow third-party cookies'.

3
Add Microsoft Domains as Exceptions

Alternatively, scroll down to 'Allowed to use third-party cookies', click 'Add', and enter '[*.]microsoft.com' and '[*.]office.com' to allow embeddings without compromising global privacy.

Adjust Browser Third-Party Cookie Settings
Website Visitor Experience: Since you cannot change the browser settings of your website visitors, consider adding a brief note next to the iframe advising users to disable strict tracking protection if the spreadsheet fails to load.
Free Microsoft Office alternative

Switch to WPS Office for Easier File Sharing

If Microsoft 365's strict authentication and cookie rules are causing display issues for your website visitors, WPS Office offers a free, lightweight alternative. It provides straightforward file sharing and high compatibility with standard Office formats without the complex sign-in loops.

Free to use with a familiar, highly intuitive spreadsheet interface.Seamlessly opens, edits, and saves Microsoft Excel (.xlsx, .xls) files.Avoid complex third-party cookie restrictions when sharing documents online.Lightweight suite available across Windows, Mac, Linux, iOS, and Android.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft 365 prompt for a sign-in on an 'Anyone' public link?

This usually occurs because the web browser (especially in Incognito or Private mode) is blocking third-party cookies. Microsoft 365 needs these cookies to communicate between the webpage and its servers to verify the anonymous 'Anyone' access token.

Does this embedded Excel sign-in error happen on all browsers?

No. The behavior is largely dependent on the browser's default tracking protection. Google Chrome blocks third-party cookies in Incognito mode by default, triggering the error. Firefox and Microsoft Edge may handle these cookies differently, allowing the file to load normally.

How can I share an Excel file so it doesn't require a login?

You must select the 'Anyone with the link' option in the Share settings. However, if sharing via an embedded iframe on a website, the visitor's browser must also permit third-party tracking cookies for the embedding domains (microsoft.com and office.com) to bypass the login requirement.