Fingerprinting works by collecting bits of information about the browser and device to identify users. Couldn’t browsers like Firefox see when a website gets such info with JS and either prevent or ask permission from the user for the website to make HTTP requests to upload such information to the website. Idk if they do something like this already.
On Firefox 127.0.2 (64-bit)
https://www.amiunique.org/fingerprint
"Yes! You are unique among the 2702674 fingerprints in our entire dataset. "
Lists plugins, list of fonts (JS), and more.