Legacy Dev Forum Posts

 View Only

Sign Up

Client Application Widget can't read cookies

  • 1.  Client Application Widget can't read cookies

    Posted 06-05-2025 19:01

    eparis | 2022-08-30 14:00:28 UTC | #1

    I'm developing a small python django web app that I want to embed into the Genesys Cloud Admin platform through the client application integration. The web app functions perfectly when deploying it and using it through a normal browser.

    However, when trying to use it in its widget form in Genesys cloud, the session variables to store information from view to view don't work: the data is simply not saved. I think I narrowed it down to the fact that Django uses cookies to store the session id/key that it then uses to consult the session data in whatever backend you're using (db, redis, local files...). And I know that in this embedded widget state, Genesys is not allowing the app to use cookies. I've enabled third-party cookies in the browser and the effect is the same.

    How can I fix this? Is there any way to allow cookies to be used? Or any other advice/experience using Django web apps with the client application integration?


    Jerome.Saint-Marc | 2022-08-31 18:48:12 UTC | #2

    Hello,

    I am not familiar with Django, and what how it leverages cookies to store session info.

    But I don't think your problem specifically has to do with Genesys Cloud. I'd assume it is related to the fact that custom client apps/interaction Widgets integrations (webapps) are embedded in an iframe element in the Genesys Desktop.

    Several browsers, like Chrome, are enforcing security on management of cookies inside of an iframe.

    I don't know if it is the source of your problem, and if the following would be enough for Django, but I'd set my cookies to "secure" and to "SameSite=None". Something like what's described in the first answer of this stackoverflow post.

    You may also have to set "allow-same-origin,allow-scripts" in the IFrame Sandbox Options of your Client App integration (in Genesys Desktop - Admin - Integrations).

    Regards,


    system | 2022-10-01 12:02:19 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 16073