Safari on Mac can get stuck in a sign-in loop, making it impossible to access Apple services. It’s frustrating when you’re trying to check email or use iCloud but keep getting bounced back to the login screen.

Here’s how to fix it without resetting your account or deleting data.

Safari sign-in loop metaphor with geometric shapes

1. Check Your Apple ID Settings

First, make sure your Apple ID is active and not locked. Go to System Settings > Apple ID and verify that everything looks normal.

If you see any warnings or errors, click on them to fix the issue immediately.

Apple ID settings menu on Mac

2. Clear Safari’s Website Data

Safari sometimes stores outdated data that causes login issues. To clear it:

  • Open Safari > Settings > Privacy
  • Select "Manage Website Data"
  • Search for "apple.com" and delete its entry

This step removes any corrupted cookies or session data.

Safari privacy settings with website data list

3. Reset Safari’s Network Cache

Sometimes, cached network info causes login loops. To reset it:

  • Open Terminal and type sudo dscacheutil -flushcache
  • Press Enter to run the command

This clears Safari’s internal network cache without affecting your data.

Final thoughts

The sign-in loop usually happens due to outdated cookies or a glitch in how Safari stores Apple ID sessions. Clearing website data and resetting the cache are safe fixes that don’t require any account changes.

If these steps don’t work, contact Apple Support for further help—without losing your data.