<18d8547a58b.cdd2a868141799.7246282416803019458@mademonkey.com>
I am unable to get a download link to work in pages.sr.ht A link like this: <a href="example.com/file" download>Download Link</a> fails to work A minimum example of the problem can be found in this repository: - https://git.sr.ht/~bamarco/srht-pages-error
<PCT8D16Ji0Dqp1xW0VX0dQUJhzICfMX5rdo79LfBVhMVOcBt5KcAnH9xd-gfrexE8wG_NeKC1_RTZq1iQhX0ShWe-51fXmevuaZY_jvsXP0=@emersion.fr>
<18d8547a58b.cdd2a868141799.7246282416803019458@mademonkey.com>
(view parent)
Might be due to the CSP.
<D027GUWGIEBL.2QGOW85XKQ3AN@paper.us.eu.org>
<PCT8D16Ji0Dqp1xW0VX0dQUJhzICfMX5rdo79LfBVhMVOcBt5KcAnH9xd-gfrexE8wG_NeKC1_RTZq1iQhX0ShWe-51fXmevuaZY_jvsXP0=@emersion.fr>
(view parent)
I ran into this a while ago, it's because the sandbox doesn't have an `allow-downloads` directive. Would y'all be okay with enabling that for pages.sr.ht?
<D09OXUUSGJ2J.3C3BL3DNCB1RT@cmpwn.com>
<D027GUWGIEBL.2QGOW85XKQ3AN@paper.us.eu.org>
(view parent)
I'm open to adding allow-downloads to the CSP. Can you send a patch doing so?
<D09U5H39DARG.HD021Z7SZ6FR@paper.us.eu.org>
<D09OXUUSGJ2J.3C3BL3DNCB1RT@cmpwn.com>
(view parent)
On Tue Apr 2, 2024 at 10:02 AM EDT, Drew DeVault wrote: > I'm open to adding allow-downloads to the CSP. Can you send a patch > doing so? Sure, I just send a patch here[1]. [1]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/50678