In case this helps anyone else, I managed to make this error go away for my setup (developing locally at http://localhost:3000
and loading the Flash file from cdnjs. CoffeeScript:
if ZeroClipboard?
ZeroClipboard.setDefaults
moviePath: "//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/1.1.7/ZeroClipboard.swf"
trustedOrigins: [window.location.protocol + "//" + window.location.host]
trustedDomains: window.location.hostname
allowScriptAccess: "always"
Note that trustedDomains
is the key here. Even though it's supposedly deprecated in 1.1.7, removing it (for me at least) causes the dreaded Error calling method on NPObject
error to return.