09-06-2021 06:56 PM
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
09-07-2021 11:09 AM
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
09-08-2021 12:25 AM
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)
09-08-2021 08:44 AM
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
09-24-2021 08:50 AM
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.
09-24-2021 10:32 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide