Ok, thanks.
I have some suggestions for you to try.
Since OneDrive and Microsoft 365 rely on authentication cookies, clearing old or conflicting cookies can help, so yes, doing so would be a good first step.
The next suggestion would be disable any Safari extensions, especially ad blockers (or privacy-focused ones) as they can interfere with Microsoft 365 logins.
Next look for corrupt or duplicated credentials in Keychain Access:
- Open Keychain Access (Note: On my Mac, running macOS Sequoia, Keychain Access did not appear as an icon in the /Applications/Utilities folder. In order for me to access it I had to enter Keychain Access into Spotlight).
- In the Login keychain, search for Microsoft and OneDrive.
- Delete any saved passwords or tokens related to Microsoft 365.
- Try logging in to OneDrive again in Safari.
Next, test in Private Browsing Mode
- Open Safari > File > New Private Window.
- Try accessing OneDrive and Microsoft 365. If it works, the issue is likely related to cookies or cached data.
Next, since you have multiple Microsoft 365 accounts, Safari might be struggling with authentication:
Next, try flushing the DNS cache on your Mac.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Finally, check if the issue is with Apple’s Safari Tracking Prevention
Safari’s Intelligent Tracking Prevention (ITP) might be causing conflicts with Microsoft authentication.
- Go to Safari > Settings > Privacy.
- Uncheck Prevent cross-site tracking.
- Restart Safari and test OneDrive again.