On ublock origin (full version, not lite), click on the settings icon:

Then go to “Filter Lists” and enable both of the “Cookie Notices” options: