Iframe

naresh121
Tera Contributor

I created one action assignment called IFRAME button in incident form if I click the button it was opening an external website like this (added wikipedia webiste in that script)

naresh121_1-1686286066906.png

 

But if I change the website https://www.google.com, it was showing an error like below

naresh121_2-1686286205407.png

please help me on this, thanks in advance

3 REPLIES 3

Karan Chhabra6
Mega Sage
Mega Sage

Hi @naresh121 ,

 

This is because the X-Frame-Options: SAMEORIGIN header  is present in the response header from the https://www.google.com/ . This prevents the page from loading in iframes.

 

You can use this URL instead in as the source of iFrame : https://www.google.com/search?igu=1

It will work as desired

KaranChhabra6_0-1686289684071.png

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

 

Hi Karan,

its working

Hi Karan,

Google URL was working, but if I change any other URL's with details of login credentials like username and password, its not working. Same above error(refused connect) was coming, please kindly help on this

 

Regards,

Naresh