codesandbox / codesandbox/codesandbox-client
Download is disallowed in Chrome
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13.6k
- Forks
- 2.4k
- Avg merge
- 6d 19h
- Merged PRs (30d)
- 2
Description
Description of the problem
I'm trying to download a file from codesandbox page but it didn't.
There is a warning message in the console window: "Download is disallowed. The frame initiating or instantiating the download is sandboxed, but the flag ‘allow-downloads’ is not set. See https://www.chromestatus.com/feature/5706745674465280 for more details."

To Reproduce
Open this example
https://codesandbox.io/s/react-filesaver-example-wc1k9
Windows, Chrome - Version 91.0.4472.114 (Official Build) (64-bit)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked React FileSaver example in Chrome and reproduce the failed download while watching the console for the sandbox warning. Trace the download entry point from the example into the client code; done means the file downloads successfully in the reported Chrome environment without the disallowed-download warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100