This article explains how to set cookies in Safari, Chrome, and Firefox.
Enable Cookies – Safari for MacBook
Safari is Apple's default browser on all Mac computers and iOS devices. To enable cookies on your Mac, open Safari.
Click Safari in the menu bar and select Preferences to open the General Safari Preferences screen.
Click the Privacy tab to open Safari's privacy settings.