APIs & Integrations

eduardoavargas
Participant

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

Résolue

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 Votes
1 Solution acceptée
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

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

Résolue

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

Voir la solution dans l'envoi d'origine

0 Votes
10 Réponses
Kavya
Membre

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

Résolue

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 Votes
IsaacTakushi
HubSpot Employee
HubSpot Employee

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

Résolue

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

Résolue

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 Votes
IsaacTakushi
HubSpot Employee
HubSpot Employee

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

Résolue

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 Votes
eduardoavargas
Participant

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

Résolue

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 Votes
IsaacTakushi
HubSpot Employee
HubSpot Employee

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

Résolue

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

Résolue

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 Votes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

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

Résolue

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 Votes
nbrown8
Membre

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

Résolue

@IsaacTakushi 

Is there any update on enabling the same functionality within the CMS page editor ? There are a significant number of use cases where a user might want to be able to downloads there also

These ranges from interactions with widgets that allow drag-and-drop file uploads, downloads, and any other JavaScript package with similar function, to theme defined developer extensions, editing and also chrome and other extensions layering function.

Likewise for enabling "allow-modals" in both contexts and the private apps / cards lack the ability to pass full request parameters which meeans you can not pass abort controllers etc

0 Votes
Victor_Becerra
Gestionnaire de communauté
Gestionnaire de communauté

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

Résolue

Hi @nbrown8 
Thanks for your comment! To ensure your question or topic gets the best visibility and a wider range of responses from the community, it's usually best to start a new thread rather than adding to an older one.
A fresh post will help your query stand out to everyone who browses the forum, increasing the chances of someone with relevant insights or solutions seeing and responding to it quickly. Feel free to tag me in the post and I'm happy to get you started.
Best, Victor


loop Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.
Learn More

0 Votes