Passing data from widget to iframe site without using query params

gobinda168
Tera Contributor

Can anyone please help me I want to send some sensitive information from widget to iframe site which in hosted on GCP bucket. Currently I am using query params to do so but I want a more secure way to pass that data. Window.postMessage not working since its not in same origin.

 <div class="iframeContainer" src='www.xyz.site' ng-show="c.iframeVisibility">
 

3 REPLIES 3

Ct111
Tera Sage

Hello ,

 

You need to use  

X-Frame-Options: SAMEORIGIN (instance security hardening

 

for sending data securely via Iframes

 

For more information on this check this LINK:

 

gobinda168
Tera Contributor

Screenshot 2023-01-04 at 6.42.35 PM.png

 

I tried the above mentioned solution but not working for me in All-> Content Management app is not there

is there any other way to do so?

Maik Skoddow
Tera Patron
Tera Patron

To the best of my knowledge this is not possible. The website in your IFRAME don't it is embedded in another page. Thus, you have the same scenario as having opened that website in another browser tab. And the only way to pass data to such an external website is either adding query parameters to the URL or passing data via POST requests. But I don't know whether the last option would be possible for your IFRAME scenario.

Maik