Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

How to Make a Download Attribute Work with Cross-Origin URLs

3 replies
Last updated: May 25, 2020
Is there a way to make download attribute work with cross-origin URLs (aka Sanity CDN)? e.g.
<a download href="cdn.sanity…">Download this file</a>
May 24, 2020, 10:20 AM
May 25, 2020, 6:26 AM
Holy crap that worked, thanks! Is this a Sanity specific thing?
May 25, 2020, 6:58 AM
Great. Yes, as far as I know
May 25, 2020, 7:07 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?