'In safari browser, refused to display in a frame because it set "X-Frame-Options" to "Deny"

Actually, I tried to download a file inside iFrame using location.url='download file link'. it works well in all browsers except safari.

In safari browser, I am facing following issue.

Refused to display 'mydownlaod url' in a frame because it set "X-Frame-Options" to "Deny".

Could you please provide your suggestion to download a file inside iframe? Do we have any option to fix this in client side itself?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source