It's a bit obscure in Firefox 57 beta and newer. Open Preferences then click on Privacy & Security, then go to the "History" section. Select Firefox will "use custom settings for history" and you'll see the option to refuse third-party cookies.
It's is under the history sub-title, but you can see all the options in the screen at once. Not as hidden as in chrome.
Thank you.