ZeroClipboard: swf loaded, but not working

前端 未结 5 1064
旧时难觅i
旧时难觅i 2021-02-14 05:51

ZeroClipboard doesn\'t work and it doesn\'t throw any errors (javascript console).

The website is hosted on a HTTPS webserver running on localhost. Both the website and

5条回答
  •  感动是毒
    2021-02-14 06:39

    Would just like to point out for anybody else who finds this question first: ZeroClipboard does not work when looking at the file locally i.e. file://path/index.html. This is because of Adobe's security policies blocking the file:// protocol.

    https://stackoverflow.com/a/9450359/710377

    If you're already using Node.js at all (even just for the package manager) you can spin up a basic web server on the command line to test ZeroClipboard with npm install http-server -g and http-server /path/ (assuming that npm stuff is already on your path).

提交回复
热议问题