There are suggestions to turn off JavaScript and Block Cookies, but I don't know how effective it is, except it may break some websites.
From the Article above:
Fingerprinting isn't automatically bad and, in some cases, offers potential benefits to end users. Banks, for instance, can use it to know that a person logging into an online account isn't using the computer that has been used on every previous visit. Based on that observation, the bank could check with the account holder by phone to make sure the login was legitimate. But fingerprinting also carries sobering privacy concerns.
I'm using ScriptSafe extension. It comes with fingerprint protection features. It's applicable to Chrome and Chromium-based browsers maybe Opera being the exception. Add to it you can also use CanvasFingerprintBlock extension as well. If you want to see some of the fingerprints you can use Chameleon extension.
For Firefox you can use CanvasFingerPrint Blocker.