Legacy Dev Forum Posts

 View Only

Sign Up

Problem with links inside Iframed purecloud Application

  • 1.  Problem with links inside Iframed purecloud Application

    Posted 06-05-2025 19:09

    Srdjan_Kojic | 2019-02-28 12:14:15 UTC | #1

    Hi Everyone,

    I have a problem inside my embeded (iFramed) application inside purecloud environment. It is a widget for finding various information related to the procedures. It has some links embeded. The main problem is when I click on the link itself, it does not allow me to open it, it behaves like nothing happened at all. But when I click on option "Open Link In New Tab" link opens, or sometimes shows timeout error.

    Is there a way for this to be fixed, I suspect that there is something hardcoded in navigating away from the purecloud environment behavior, or is there some setting that I missed for this type of behavior to be allowed?

    Any help would be appreciated.

    Thanks.


    Justin_Ray | 2019-02-28 16:32:16 UTC | #2

    Hello.

    Are you trying to navigate within the frame or specifically target a new window/tab?

    There should be no restriction on internal iframe navigation. Do note, however, that client-apps SDK calls will not work if you navigate away from the configured app origin.

    If you're explicitly trying to target a new tab/window, your app will need the allow-sandbox sandbox permission. You can configure this via the App properties in Admin UI or via the Platform API.

    Admin UI: https://help.mypurecloud.com/articles/set-custom-client-application-integration/ Platform API: https://developer.mypurecloud.com/api/client-apps/installing-app.html

    Hope this helps!


    Srdjan_Kojic | 2019-02-28 20:46:27 UTC | #3

    Hi Justin,

    Thank you for your reply. I have a webpage iframed with search on it. I put in all the options there inside configuration field, to allow iframe sandbox options. For me it doesn't matter whether links are opened inside the iframe sandbox, or in the next tab navigating away from the page itself, as long as they open in the first place. It behaves strange on the iframe itself, it seems like the iframe itself does not recognize left "click" event at all on the links, while middle button as a gesture in chrome works for instance. I haven't used SDK, only iframed previously built webpage. I tried your suggestion, in fact already few of them were enabled, now I have all available options for iframe enabled, and still result remains the same.

    Do you have any other idea how to solve this ?


    Justin_Ray | 2019-02-28 22:08:00 UTC | #4

    Are these standard html anchor tags or are they being handled by javascript click listeners?

    If they are standard anchor tags and the target is _top those will not work because of the aforementioned iframe security sandbox.

    If they are javascript handled, make sure you have allow-scripts enabled and no javascript errors are being thrown during setup that would cause the click listeners to fail or not run at all.

    Finally, ensure that the target location of your links are not restricted via the X-Frame-Options header. This error should manifest itself in the developer tools console.


    system | 2019-03-31 22:08:02 UTC | #5

    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: 4697