✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

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?