cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1187
Views
10
Helpful
5
Replies

[Problem] Somesite in gadget HTML Iframe tag

nganvt
Level 1
Level 1

Hello Developers,

 

My customer is now having an issue with an iframe-related gadget.
Vtiger CRM is used to manage their tickets and customers. They'll log in using Vtiger CRM, which is linked with Finesse. The Vtiger CRM login procedure failed after updating to Chrome 90 due to a cookie from another website.

On the web service, the somesite cookie can be customized.
However, owing to company policy, I am unable to support this method (web service root access). I searched for a solution on Google and discovered that javasciprt documnet.cookie may be used. However, I am unsure how to utilize it in the FInesse gadget.
Is there a way to use javasciprt to solve this?  I would really appreciate some help here if this is possible. 


More information

 

UCCX version 11.6 : 

using finesse gadget  : https://github.com/CiscoDevNet/finesse-sample-code/tree/master/EmbeddedWebAppSampleGadget

JavaScript example :  https://github.com/GoogleChromeLabs/samesite-examples/blob/master/javascript.md

5 Replies 5

dekwan
Cisco Employee
Cisco Employee

Hi,

 

Are you trying to modify the cookie for the webpage that is being loaded in the iframe or for Finesse? You can definitely call javascript functions from the EmbeddedWebApp.js file, but not sure that will be sufficient if it is for the webpage in the iframe.

 

Thanx,

Denise

Hello, Dekwan.


Thank you so much for taking the time to provide such valuable comments.


 

Are you trying to modify the cookie for the webpage that is being loaded in the iframe or for Finesse? .


 I'm attempting to find out how to use the file EmbeddedWebApp.js to perform cookie changes for iframes.

 

Is there a method to correct somesite issue in your experience?

I'm not sure how finesse cookies function (sorry for this)

dekwan
Cisco Employee
Cisco Employee

Hi,

 

I haven't had to correct a somesite issue before so I do not know what the correct method is. But, if you want to try it out, you just have to copy that JS code (from the link you provided) into theEmbeddedWebApp.js. If you want it to be executed just once, put the code into the init function.

 

Like I said earlier, I don't know if this is going to fix the code in the iframe level, but it doesn't hurt to try.

 

Thanx,

Denise

Hello, Dekwan.

Please accept my apologies for the delay in responding to you.

I tried using the EmbeddedWebApp.js file's js code to change the cookie for the iframe, but it didn't work.

Currently, chrome is at version 94, and I'm completely stuck. 

dekwan
Cisco Employee
Cisco Employee

Hi,

 

Did you make sure that your modified code was being reflected? The Finesse gadget caches, so I suggest using the nocache option: https://developer.cisco.com/docs/finesse/#!gadget-caching

 

If it indeed didn't work, then the only other option would be to just open the CRM site in a new tab rather than embedded into the Finesse desktop. I know that is not ideal. Other than that, I do not have any other ideas.

 

Thanx,

Denise