Saving a Screenshot (or any data) from WebGL on to a machine

I’ve managed to save a Screenshot in the Editor, using Application.persistentDataPath but have not been able to do the same thing with a deployed build.

Is there a recommended way of doing this in Unity 2021? I’ve tried all the previous ways and none appear to work anymore.

The generated WebGL path points to /idbfs/, but when I go to the URL I get a 404.

can transfer image data into javascript blob, and then you can save that as a image,
something like User image download from in webgl app

Thanks for the link but I’ve already tried the things listed and none seem to work, I’ll try having another go.

My asset can do this.