clojars

olttwa 2022-10-21T06:07:07.602519Z

Hello Clojars team, The Copy button isn't functioning correctly on Brave browser (v 1.44.101) It works well on Safari & Firefox. Haven't tested Google Chrome as I don't have it installed.

✅ 2
2022-10-21T13:21:45.926889Z

Can you look in the console and see if you get an error?

2022-10-21T13:36:37.971779Z

In Brave, I see: > Uncaught (in promise) DOMException: The Clipboard API has been blocked because of a permissions policy applied to the current document. See https://goo.gl/EuHzyv for more details. But that url just talks about permissions in cross-origin iframes, and clojars uses no iframes. I don't have Chrome installed either to test with that.

2022-10-21T13:42:25.834849Z

Ah, it may be related to our Permissions-Policy header. Checking on that now.

2022-10-21T13:47:32.901869Z

That was it. It should be fixed now. The fix was https://github.com/clojars/clojars-web/commit/a30f66269936da2fd48fbd70779221234b1cbc92

olttwa 2022-10-21T18:59:53.325049Z

It's working now. Thanks Toby 😄

2022-10-21T19:54:57.386579Z

My pleasure! Thanks for the report.