APIs & Integrations

JZhao
Participant

Can't open iframe from CRM extension card action

SOLVE

I created a Card in CRM extension and I am able to see this card in the dashboard. In the payload from fetch data uri, I speicfy the a iframe in the action and link a external URI "www.google.com". But when I click the action to open the iframe, it shows an error: "www.google.com refused to connect.". I have tired a few different URI but always get this "refused to connect" error. How can I specify a valid url in the iframe?

 

 

{
results: [
{
objectId: 1,
title: `Transaction History`,
key1: 'value1',
key2: 'value2',
key3: 'value3',
actions: [
{
type: 'IFRAME',
width: 890,
height: 748,
uri: 'https://www.google.com',
label: 'Query transaction history',
},
],
},
{
objectId: 2,
title: `Deposit History`,
actions: [
{
type: 'IFRAME',
width: 890,
height: 748,
uri: 'https://www.google.com',
label: 'Query transaction history',
},
],
},
],
};

0 Upvotes
1 Accepted solution
tominal
Solution
Guide | Partner
Guide | Partner

Can't open iframe from CRM extension card action

SOLVE

This is funny because I came back across my reply from a Google search trying to figure something else out with Custom CRM Cards.

 

For anyone Googling this, my reply from last year is accurate. Google prevents iframes from embedding their site.

 

tominal_0-1664145847941.png

 

Embedding a site that allows cross origin embeds works fine i.e. example.com.


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com

View solution in original post

0 Upvotes
3 Replies 3
tominal
Guide | Partner
Guide | Partner

Can't open iframe from CRM extension card action

SOLVE

I'm betting it's because Google doesn't want you to iframe their website. Try it with a website that you have control over i.e. where the X-Frame-Options header is not set to SAMEORIGIN.

Hope that helps.


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
tominal
Solution
Guide | Partner
Guide | Partner

Can't open iframe from CRM extension card action

SOLVE

This is funny because I came back across my reply from a Google search trying to figure something else out with Custom CRM Cards.

 

For anyone Googling this, my reply from last year is accurate. Google prevents iframes from embedding their site.

 

tominal_0-1664145847941.png

 

Embedding a site that allows cross origin embeds works fine i.e. example.com.


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
0 Upvotes
JZhao
Participant

Can't open iframe from CRM extension card action

SOLVE

Can I get any help on this issue? thanks.

0 Upvotes