Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to copy to clipboard" when trying to copy client key. #750

Open
nicktheone opened this issue Dec 18, 2024 · 5 comments
Open

"Failed to copy to clipboard" when trying to copy client key. #750

nicktheone opened this issue Dec 18, 2024 · 5 comments
Labels
in:ui question Further information is requested

Comments

@nicktheone
Copy link

Installed Gotify through Docker and I'm getting this error. The browser I'm using it Firefox but I've tried Edge too, in case it was a browser compatibility problem.

@eternal-flame-AD
Copy link
Member

It may require HTTPS for it to work, this is a hard limitation (*) of the browser, if it is not HTTPS currently can you try it up or just copy manually?

@eternal-flame-AD eternal-flame-AD added in:ui question Further information is requested labels Dec 18, 2024
@nicktheone
Copy link
Author

Unfortunately I don't have https set up because I don't expose services outside of my network.

I forgot to add I can see and manually copy the token, it's just the button to copy that doesn't work.

@kirides
Copy link

kirides commented Dec 26, 2024

Unfortunately I don't have https set up because I don't expose services outside of my network.

I forgot to add I can see and manually copy the token, it's just the button to copy that doesn't work.

I have https set up for all services, using dns-01 challenge and wildcard certificates.
Nobody needs to know the IP addresses of the services, and locally a pihole (now adguard home) rewrites all DNS requests to local IPs

You only need a domain name, no public servers.

@nicktheone
Copy link
Author

Unfortunately I don't have https set up because I don't expose services outside of my network.
I forgot to add I can see and manually copy the token, it's just the button to copy that doesn't work.

I have https set up for all services, using dns-01 challenge and wildcard certificates. Nobody needs to know the IP addresses of the services, and locally a pihole (now adguard home) rewrites all DNS requests to local IPs

You only need a domain name, no public servers.

I don't see the need for any of this just to use https for internal services. For anything else, I have both Tailscale for hole-punching and Cloudflare Tunnel for those services I want to expose.

@jmattheis
Copy link
Member

Additionally using https besides tunnels could guard against potential security vulnerabilities in the tunneling software.

The browser requires you to use https when you want to use certain apis including the clipboard api. There are some workarounds to get this working without https, but they are deprecated and I don't want them in this project.

An UX improvement could be to hide the button when it's an http connection, but I'm not sure it's worth the development effort, as most users use https.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:ui question Further information is requested
Development

No branches or pull requests

4 participants