APIs & Integrations

eduardoavargas
Participant

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

With the last update of chrome it restricted the possibility to download in a restricted iframe, see the note (https://www.chromestatus.com/feature/5706745674465280)

I have an integration where I make files available for download, now how can I add this flag to an iframe of the crm card extension

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Thanks for your patience, @eduardoavargas.

 

On Friday, June 12, 2020, the team added the allow-downloads flag to CRM card iframes. Download functionality should now be restored for customers on Chrome 83!

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
8 Replies 8
Kavya
Member

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Hey, I'm still getting the same error(Download is disallowed. The frame initiating or instantiating the download is sandboxed, but the flag ‘allow-downloads’ is not set) when I try to download the HTML document as PDF using HTML2canvas function.

Version of my Google chrome is (Version 87.0.4280.66 ).

Can anyone help me through this?

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Hi, @eduardoavargas.

 

Thanks for reaching out.

 

Off the top of my head, I don't know of a way for you to edit a HubSpot CRM card/extension's iframe attributes, but I want to pose your use case to my team.

 

Can you confirm your app ID? If you have a link to an example record which contains such an iframe action, that would be very helpful as well. Feel free to share these details with me via direct message.

Isaac Takushi

Associate Certification Manager
eduardoavargas
Participant

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Thanks for the feedback

My app Id: 196032

I will send print because we have sensitive data in the application

Capturar.PNGCapturar2.PNGCapturar3.PNG

 

By clicking on this image (Captura3.png) the file is downloaded to the user's machine. everything was fine until the chrome update.

One more detail, this iframe is for users logged in. I use the authentication of the hub to authenticate myself in my application.

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Thank you for sharing this, @eduardoavargas.

 

One more point of clarification: What happens when a user attempts to download the files? Does Chrome throw an alert or only a warning or error in the console?

Isaac Takushi

Associate Certification Manager
0 Upvotes
eduardoavargas
Participant

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Good afternoon @IsaacTakushi 

Yes, post a warning on the console.

 

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

.

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Thank you, @eduardoavargas.

I'll share this with my team to see what options we have available.

 

I appreciate your patience!

Isaac Takushi

Associate Certification Manager
IsaacTakushi
HubSpot Employee
HubSpot Employee

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Hey, @eduardoavargas.

 

I wanted to let you know that we're still discussing this internally. We haven't forgotten about you!

 

Thanks for your continued patience.

Isaac Takushi

Associate Certification Manager
0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

How to add the allow-downloads flag to the sandbox tag in iframe

SOLVE

Thanks for your patience, @eduardoavargas.

 

On Friday, June 12, 2020, the team added the allow-downloads flag to CRM card iframes. Download functionality should now be restored for customers on Chrome 83!

Isaac Takushi

Associate Certification Manager
0 Upvotes