I ran into that exact message a couple of months ago when I switched from Chrome to a different browser and forgot to allow permissions for the new one. Android keeps those switches separate for each app, so turning it on in one place does not cover everything else. What worked for me was opening the browser settings, granting install permission specifically for that tab or app, and then going back to
download app files again over a clean connection. Once the package finished saving, tapping it from the Downloads folder went straight into the installer without any extra warnings. Just remember to keep your phone screen unlocked during the setup so the process does not get interrupted halfway through.