To always allow cookies in Safari on iPhone, open the Settings app, tap Apps > Safari > Advanced, and turn off Block All Cookies. Websites that need cookies, such as sites you sign in to, will then work normally. The setting stays that way until you change it, so you only need to do this once. You can leave Prevent Cross-Site Tracking on for privacy. To block cookies instead, turn the same switch on. The steps are the same on an iPad.
These steps come from Apple’s Enable cookies on iPhone, Delete your Safari history, cache, and cookies and Browse the web privately pages. Apple currently publishes the same cookie steps for iOS 18, iOS 26 and iOS 27.
What a Cookie Is
A cookie is a small piece of data a website stores on your iPhone so it can remember you, for example that you are signed in or which settings you picked. A few points save time before you change anything:
- Cookies are normally already allowed. There is no switch named “Allow Cookies” on iPhone. Safari accepts cookies unless Block All Cookies has been turned on, so “allowing” cookies means making sure that one switch is off.
- The setting is in the Settings app, not in Safari. You will not find it in Safari’s own menus.
- It only affects Safari. Other browser apps on your iPhone keep their own cookies and have their own settings.
- The path depends on your iOS version. On iOS 18 and later, Safari’s settings are inside Apps. On older versions, Safari is listed on the main Settings screen. To see your version, go to Settings > General > About.
How to Allow Cookies in Safari on iPhone
- Open the Settings app. It is the gray gear icon on your Home Screen.
- Scroll to the bottom of the list and tap Apps. Your installed apps appear in alphabetical order.
- Tap Safari. You can also type “Safari” in the search field at the top to jump to it.
- Scroll to the bottom of the Safari screen and tap Advanced.
- Look at Block All Cookies. If the switch is on, tap it to turn it off. If it is already off, cookies are already allowed and you do not need to change anything.
Safari accepts cookies again, and sites that require them can keep you signed in and remember your settings. There is no Save button. Go back to Safari and reload any page that showed a cookie error. Chrome on a computer or Android phone has its own setting for enabling cookies.

If You Don’t See Apps in Settings
The Apps entry was added to Settings in iOS 18. On iOS 17 or earlier, scroll down the main Settings screen and tap Safari. Block All Cookies is under Advanced, or on older versions under Privacy & Security on the main Safari screen.
Why You Might Need Cookies On
Apple says that with all cookies blocked:
- You will likely not be able to sign in to a site, even with the correct username and password.
- You might see a message that cookies are required or that your browser’s cookies are off.
- Some features on a site might not work.
In practice that covers most sites with an account: email, banking, shopping carts, school and work portals, and streaming services opened in the browser. If one of those suddenly stops keeping you signed in, the cookie switch is the first thing to check.
Using Firefox instead, and a sign-in window never appears? You may need to allow pop-ups in Firefox on iPhone.
What About Cross-Site Tracking?
Allowing cookies doesn’t turn off Safari’s tracking protection. Prevent Cross-Site Tracking, found in Settings > Apps > Safari, limits third-party cookies and data by default. A third-party cookie is one set by a company other than the site you are visiting, usually to follow your activity from site to site.

So there are two separate switches. Block All Cookies is all or nothing and is the one that breaks sign-ins. Prevent Cross-Site Tracking is on the main Safari settings screen, not under Advanced, and is meant to stay on. Turn it off only if a site you trust still doesn’t work after cookies are allowed, and consider turning it back on when you are done. Apple’s wording is that turning this option off allows cross-site tracking.
Tracking by apps, rather than websites, is a separate setting you can use to limit ad tracking on iPhone.

Still Seeing Cookie Errors?
If a site still says cookies are off after you turn off Block All Cookies, work through these checks in order and retest the site after each one:
- Reload the page. A page that was already open can keep showing the old error. Close the tab and open the site again.
- Turn off content blockers. Go to Settings > Apps > Safari > Extensions, tap a content blocker, and turn it off. To turn one off for a single site, tap the button on the left side of the search field, then Manage Extensions. Apple’s page on how to get extensions to customize Safari on iPhone covers both, and the steps to disable a Safari extension on an iPhone have more detail.
- Test with Prevent Cross-Site Tracking off. Some sign-in pages rely on third-party cookies. For a site you trust, turn it off in Settings > Apps > Safari and try again. Turn it back on afterward.
- Clear old website data. Damaged cookies can cause errors even when cookies are allowed. The steps are in the next section, and you’ll need to sign in again afterward.
- Check JavaScript. Many sites need both cookies and JavaScript. Safari has a switch to turn JavaScript on or off.
- Switch is gray? Screen Time content restrictions or a school or work device profile can lock Safari settings. Ask the person who set the Screen Time passcode, or your IT support.

How to Clear Cookies
Warning: clearing website data signs you out of websites. Make sure you know your passwords, or that they are saved, before you continue.
- Go to Settings > Apps > Safari > Advanced > Website Data.
- Tap Remove All Website Data, then Remove Now.

This clears cookies and cache but keeps your browsing history. It removes data sites use to save login information, so expect to sign in again. To clear history too, use Clear History and Website Data on the main Safari settings screen and confirm the timeframe. If either button is gray, there may be no data to clear, or you may need to check your Screen Time web content restrictions. For more on this, read about clearing the cache on iPhone.
To remove data for just one site, tap Website Data, find the site in the list, swipe left on it, and tap Delete. Your other sign-ins stay intact.
How to Block Cookies

To block cookies, go to Settings > Apps > Safari > Advanced, turn on Block All Cookies, and tap Block All to confirm.
Warning: This removes all existing cookies and website data, quits Safari and reloads your tabs. You will be signed out of your sites, and turning the switch off again later does not bring the old cookies back. If you turned it on by accident, you’ll need to sign back in to your sites after turning it off.
Should You Block All Cookies?
For most people, no. Blocking all cookies affects every site, including the ones you trust, so you get signed out of email, shopping, and banking sites and have to set your preferences again on each visit. It makes sense mainly for short periods, such as testing how a site works without cookies. If tracking is your concern, keep Prevent Cross-Site Tracking on and clear website data now and then instead.
Two more options protect your privacy without breaking sign-ins. In Safari, tap the Page Menu button and open Privacy Report to see the trackers Safari has blocked. With an iCloud+ subscription, iCloud Private Relay hides your IP address and exact location from websites. Turn it on in Settings > your name > iCloud > Private Relay.
Cookie Settings at a Glance
| Setting | Where it is | What it does | Suggested position |
|---|---|---|---|
| Block All Cookies | Settings > Apps > Safari > Advanced | Stops every site from storing cookies in Safari | Off, so cookies are allowed |
| Prevent Cross-Site Tracking | Settings > Apps > Safari | Limits third-party cookies and data | On, unless you are testing a trusted site |
| Extensions | Settings > Apps > Safari > Extensions | Turns content blockers and other extensions on or off | Your choice; turn off to troubleshoot |
| Website Data | Settings > Apps > Safari > Advanced | Removes stored cookies and cache | Use only when a site misbehaves |
iPhone Cookie Questions
Are cookies on by default in Safari on iPhone?
Cookies are allowed whenever Block All Cookies is off. Apple’s instructions for enabling cookies consist only of turning that switch off, and its privacy guide says Safari limits third-party cookies and data by default through Prevent Cross-Site Tracking. If you have never changed these settings, you most likely do not need to do anything.
Does clearing website data delete my saved passwords?
Clearing history and website data doesn’t change your AutoFill information. You will be signed out of websites, but details saved for AutoFill are not removed by this action.
Can I allow cookies for just one website?
Apple’s cookie steps describe a single Block All Cookies switch that covers every site, not a per-site list. In practice, the choice is cookies on (with Prevent Cross-Site Tracking limiting third-party cookies) or all cookies off. Safari’s per-site Website Settings cover items such as camera, microphone and location, not cookies.
Do I have to allow cookies again after an iOS update?
You should not need to. The switch is a standing setting, not a one-time permission. If a site starts reporting blocked cookies after an update, open Settings > Apps > Safari > Advanced and confirm the switch is still off, keeping in mind that Apple sometimes moves settings between versions.
Is a website’s cookie banner the same thing?
No. A banner asking you to accept or reject cookies comes from the website and records your choice for that site only. The Safari setting decides whether any site can store cookies at all. If Block All Cookies is on, a site may keep showing its banner because it cannot save your answer.
Does this change cookies in Chrome or other browser apps?
No. The steps here change Safari only. Other browsers store their own website data and manage it from inside their own apps, so check that app’s settings or the developer’s help pages if the problem happens there.
Is it safe to leave cookies on?
For most people, yes. It is how Safari is set up unless you change it, and most sites with accounts depend on it. Keeping Prevent Cross-Site Tracking on and clearing website data now and then limits how much sites can keep about you without breaking sign-ins.
More Safari Guides
Once cookies are working, these guides cover other Safari settings on iPhone:
- How to stop Safari websites from using your location
- Why can’t I open a private tab in Safari?
- How to change the Safari search engine

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.