edgedb-ui icon indicating copy to clipboard operation
edgedb-ui copied to clipboard

Copy to clipboard not working when accessed through IP

Open fantix opened this issue 3 years ago • 1 comments

EdgeDB Server: 2.2+dba8da8, 2.1+c600476 Browser: Chrome 105.0.5195.102, Firefox 104.0.2

  1. Start an EdgeDB instance (listen on 0.0.0.0, use Docker for simplicity):

    docker run --rm -p 5656:5656 -e EDGEDB_SERVER_SECURITY=insecure_dev_mode -e EDGEDB_SERVER_PASSWORD=123456 -e EDGEDB_SERVER_ADMIN_UI=enabled edgedb/edgedb:2.2
    
  2. Access the UI through non-localhost IP, e.g. http://192.168.2.22/ui

  3. The "Copy" and "Copy as JSON" button in REPL doesn't work, no error in console.

Looks like a browser security issue, so it may also affect other functions.

Initially reported by @xyplayman in https://gitee.com/edgedb/devrel/issues/I5R6WD

fantix avatar Sep 18 '22 17:09 fantix

https://discord.com/channels/841451783728529451/1157617069920096287

jaclarke avatar Oct 04 '23 10:10 jaclarke