Downloading "blob" blocked by Chrome

990 views
Skip to first unread message

ATRS IT Support

unread,
Feb 16, 2023, 6:55:59 AM2/16/23
to securi...@chromium.org

Hi team,

 

Recently a javascript application is unable able to save generated file content in Chrome, it is “blocked by your organization”.

 

      const blob = new Blob([xml], {type: 'application/xml'});

      const href = URL.createObjectURL(blob);

      const element = document.createElement('a')

      element.href = href;

      element.setAttribute('download', fileName);

      element.click();

 

I am unable to find more information relating to this issue on the internet.

The javascript is initially served via https. 

Does a “blob” with a “secure” base URL classify as insecure, and is now blocked?

How can such code work now?

 

Regards

Peter

 


Sensitivity: C1 Public

The content of this e-mail is intended only for the confidential use of the person addressed.
If you are not the intended recipient, please notify the sender and delete this e-mail immediately.
Thank you.

Reply all
Reply to author
Forward
0 new messages