patternfly-elements icon indicating copy to clipboard operation
patternfly-elements copied to clipboard

[pfe-clipboard] If site isn't HTTPS copy functionality will not work.

Open wesruv opened this issue 3 years ago • 2 comments

The clipboard API requires a secure origin to work, otherwise navigator.clipboard will be undefined.

I recommend we hide the clipboard button and throw a warning if the site is not https

wesruv avatar Feb 08 '22 19:02 wesruv

Ah, that's right. We could possibly use the the old school fallback if we don't have access to navigator.clipboard.

heyMP avatar Feb 08 '22 19:02 heyMP

Hey @wesruv me and Aditi are going to work through this ticket together. Would you add her to the project so she can be an assignee https://github.com/aditiohri

kelsS avatar Feb 10 '22 21:02 kelsS