简体   繁体   中英

Can't download video from sandboxed iframe in IE11

There is the issue in my application related to using iframe to embed a video. The video has a download button to download the video. It works fine at all browsers except IE11.

I click to download button in video inside iframe. As a result the new tab opens and nothing happens.

We use SANDBOX attribute for this iframe and can't delete it according to our security policies.

sandbox='allow-same-origin allow-scripts allow-popups allow-downloads'

Could somebody help to understand why it doesn't work on IE11 only? Are there any ways to fix the issue?

Video in iframe

Result of trying to download

I assume because IE11 does not support the allow-downloads sandbox option, see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#Browser_compatibility

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM