stylegan-web
stylegan-web copied to clipboard
Clipboard Error on HTTP server
Hi,
When I run the project locally, clipboard functionality works fine. However, when I try to run the project on a server (for example, AWS EC2 instance), copy to latent code buttons and hash copy-paste in merger page do not work because of this issue: navigator.clipboard is undefined
What I've learned is clipboard doesn't work with unsecured applications. So, it's necessary to run flask over HTTPS if you would like to use clipboard functionalities. If you think that this functionality is not necessary, at least it might be good to add a note in README.md.
Yes, the web security issues also annoy me.
When serve on LAN, the simple solution is run the flask as a https server by a self-signed certificate. And then you will encounter "dangerous" warning in browser, then you must click "advance->proceed to insecurity" or something. That should thank to Google's https everywhere policy.
Maybe in future we should design a latent code file format, and offer input by file dragging-dropping, and also easy to storage and sharing.
When serve on LAN, the simple solution is run the flask as a https server by a self-signed certificate. And then you will encounter "dangerous" warning in browser, then you must click "advance->proceed to insecurity" or something. That should thank to Google's https everywhere policy.
I've added a dummy self-signed SSL for now. Chrome doesn't let me to proceed but Firefox is more relaxed and it's working there.
Maybe in future we should design a latent code file format, and offer input by file dragging-dropping, and also easy to storage and sharing.
Yes, I think it would be a good solution.