ali.aljohani | 2022-04-14 07:23:10 UTC | #1
Dears,
Regarding the Script, I am not able to embed a web page that requires a camera access. The iFrame does not allow it. Is there a work around or a solution for this?
Best regards, Ali Aljohani
Jerome.Saint-Marc | 2022-04-19 12:55:11 UTC | #2
Hello,
The Script Web Component in fact translates to an "iframe" HTML element (with "allow" set to "clipboard-read; clipboard-write"). It is unfortunately not possible to set/configure different values for iframe allow and sandbox attributes - like the ones you would need to allow camera access.
You can request a new feature and share your use case at https://genesyscloud.ideas.aha.io/
Regarding possible workarounds, the only thing I can think of if you keep the Script approach would be to open this web page in a separate tab/window (using a button or automatically).
Otherwise, you can also leverage an Interaction Widget integration. This will allow to define and to expose a web app as a conversation tab. Interaction Widget integrations support the configuration of allow and sandbox iframe attributes. The supported values are the following:
- sandbox: 'allow-forms,allow-modals,allow-popups,allow-presentation,allow-same-origin,allow-scripts,allow-downloads'
- allow/permissions: 'camera,microphone,geolocation,clipboard-write,display-capture,fullscreen'
Regards,
ali.aljohani | 2022-05-05 07:39:08 UTC | #3
Thank you very much Jerome. I will try Interaction Widget.
However, opening a page outside the script will not fit my case since the customer may need to interact with 2 separate browser tabs at same time.
Best regards, Ali Aljohani
system | 2022-06-05 07:39:54 UTC | #4
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: 14308