Safari 11

Go to Preferences > Privacy
Confirm that “Website Tracking : Prevent cross-site tracking” is Disabled

Safari 10 and older

Go to Preferences > Privacy
Select “Always allow” under Cookies and website data:

 

Safari 15

Go to Preferences > Privacy
Confirm that “Website Tracking : Prevent cross-site tracking” is Disabled