Title: Copy to clipboard button in `/cli-auth` doesn't work when running on non-local (rPi) machine over HTTP · Issue #1601 · coder/coder · GitHub
Open Graph Title: Copy to clipboard button in `/cli-auth` doesn't work when running on non-local (rPi) machine over HTTP · Issue #1601 · coder/coder
X Title: Copy to clipboard button in `/cli-auth` doesn't work when running on non-local (rPi) machine over HTTP · Issue #1601 · coder/coder
Description: OS Information OS: macOS Browser (if applicable): Safari coder --version: Coder v0.0.0-devel+6c11170 Thu May 19 18:04:44 UTC 2022 6c11170 Steps to Reproduce Run server on Raspberry Pi (aarch64): coder server --dev --address 0.0.0.0:7080 ...
Open Graph Description: OS Information OS: macOS Browser (if applicable): Safari coder --version: Coder v0.0.0-devel+6c11170 Thu May 19 18:04:44 UTC 2022 6c11170 Steps to Reproduce Run server on Raspberry Pi (aarch64): co...
X Description: OS Information OS: macOS Browser (if applicable): Safari coder --version: Coder v0.0.0-devel+6c11170 Thu May 19 18:04:44 UTC 2022 6c11170 Steps to Reproduce Run server on Raspberry Pi (aarch64): co...
Opengraph URL: https://github.com/coder/coder/issues/1601
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Copy to clipboard button in `/cli-auth` doesn't work when running on non-local (rPi) machine over HTTP","articleBody":"## OS Information\r\n\r\n- OS: macOS\r\n- Browser (if applicable): Safari\r\n- `coder --version`: Coder v0.0.0-devel+6c11170 Thu May 19 18:04:44 UTC 2022 https://github.com/coder/coder/commit/6c1117094d78192c6f13a2336597cedc188eb028\r\n\r\n## Steps to Reproduce\r\n\r\n1. Run server on Raspberry Pi (`aarch64`): `coder server --dev --address 0.0.0.0:7080 --access-url http://0.0.0.0:3000`\r\n2. Open `http://pi.my.domain:7080/cli-auth`\r\n3. Login\r\n4. Press Copy-to-clipboard button\r\n\r\n## Expected\r\n\r\nCopy to clipboard works or shows an error suggesting a manual copy.\r\n\r\n## Actual\r\n\r\nToken is not copied to clipboard, and no error indicating that it didn't work.\r\n\r\nBrowser console shows the following error:\r\n\r\n```\r\n[Error] Error: copyToClipboard: failed to copy text to clipboard — bundle.13f11ac8daaa8228db0b.js:2:537210\r\n\t(anonymous function) (bundle.13f11ac8daaa8228db0b.js:2:537315)\r\n\t(anonymous function) (bundle.13f11ac8daaa8228db0b.js:2:536870)\r\n\t(anonymous function) (bundle.13f11ac8daaa8228db0b.js:2:537615)\r\n\tPromise\r\n\tonClick (bundle.13f11ac8daaa8228db0b.js:2:537375)\r\n\t$e (bundle.13f11ac8daaa8228db0b.js:2:184959)\r\n\tKe (bundle.13f11ac8daaa8228db0b.js:2:185113)\r\n\t(anonymous function) (bundle.13f11ac8daaa8228db0b.js:2:203291)\r\n\tTr (bundle.13f11ac8daaa8228db0b.js:2:203380)\r\n\t_r (bundle.13f11ac8daaa8228db0b.js:2:203796)\r\n\t(anonymous function) (bundle.13f11ac8daaa8228db0b.js:2:209419)\r\n\tje (bundle.13f11ac8daaa8228db0b.js:2:284650)\r\n\t(anonymous function) (bundle.13f11ac8daaa8228db0b.js:2:205252)\r\n\tAr (bundle.13f11ac8daaa8228db0b.js:2:205280)\r\n\tQt (bundle.13f11ac8daaa8228db0b.js:2:193358)\r\n\tYt (bundle.13f11ac8daaa8228db0b.js:2:192584)\r\n\tYt\r\n\t(anonymous function) (bundle.13f11ac8daaa8228db0b.js:2:308128)\r\n\tZe (bundle.13f11ac8daaa8228db0b.js:2:284391)\r\n\tqt (bundle.13f11ac8daaa8228db0b.js:2:192377)\r\n\tqt\r\n```\r\n\r\n## Screenshot\r\n\r\n\u003cimg width=\"700\" alt=\"image\" src=\"https://user-images.githubusercontent.com/147409/169386828-02d8d828-44d5-4b6a-81d6-90498500a471.png\">\r\n\r\n## Notes\r\n\r\nThere is probably some content security issue involved here, but haven't investigated further.","author":{"url":"https://github.com/mafredri","@type":"Person","name":"mafredri"},"datePublished":"2022-05-19T19:28:27Z","url":"https://github.com/coder/coder/issues/1601"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:88e30b61-9310-485b-4eff-5ee216c2bb6d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D95E:19F84C:253ADCF:2F58D9A:6B0176A8 |
| html-safe-nonce | 9b79b754946a40fa880d29b60306eff46e7f84c8a14b59ab5bcd8a00e3c02b3d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTVFOjE5Rjg0QzoyNTNBRENGOjJGNThEOUE6NkIwMTc2QTgiLCJ2aXNpdG9yX2lkIjoiNTU0NjE1OTMzMzQ2Njc5NzczNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b35aed72c835635373b47d21880fc5fc9507c314629c3035e8fde16b6cbdf297 |
| hovercard-subject-tag | issue:1242230114 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/1601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0aa0555c87a96d49625072650c7b83c03418b46b7bebe29accab0067478498e7/coder/coder/issues/1601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0aa0555c87a96d49625072650c7b83c03418b46b7bebe29accab0067478498e7/coder/coder/issues/1601 |
| og:image:alt | OS Information OS: macOS Browser (if applicable): Safari coder --version: Coder v0.0.0-devel+6c11170 Thu May 19 18:04:44 UTC 2022 6c11170 Steps to Reproduce Run server on Raspberry Pi (aarch64): co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mafredri |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width