Home » Development » How to turn off SameSite cookie attribute?

How to turn off SameSite cookie attribute?

Developers use SameSite cookie attribute to prevent CSRF (Cross-site Request Forgery) attacks. This attribute instructs browsers not to send cookies along with cross-site requests (Reference).

I needed to turn of SameSite cookie attribute for Safari as part of a fix to the issue mentioned here. A simple solution is below.

Turn off SameSite cookie attribute

In order to turn this attribute off, simply disable “Prevent cross-site tracking” option in Safari:

  1. Open Safari
  2. Go to “Preferences > Privacy
  3. Uncheck “Prevent cross-site tracking” option
Turn off SameSite cookie attribute

Source for this workaround: Issues with silent token renewal on Safari. There is also a related blog post and StackOverflow question.

If you are using Safari, don’t miss out these amazing tools! 3 Magical Tools to Highlight and Share Content in Websites

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.

1 thought on “How to turn off SameSite cookie attribute?”

Leave a Comment