• gex@lemmy.world
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    2 days ago

    Some web features like the clipboard API only work in “secure contexts” (ie. https or localhost)

    I think that’s reasonable behavior

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      10
      ·
      1 day ago

      I don’t. You can’t even copy to the clipboard in an insecure context.

      Except… You can! You just have to use the old deprecated and ridiculously awkward execCommand method.

      If that’s so insecure why do all browser’s still support it?