Skip to main content
Answer

Use a POST command from a custom made screen that is displayed in an I-frame

  • October 17, 2022
  • 5 replies
  • 120 views

mprins
Rookie

Within a Thinkwise Application (Universal GUI), we have a custom screen that's displayed in an Iframe. To send results from this Iframe the Development team tries to use a POST-command, that is blocked in the Iframe. ‘Blocked form submission to because the form's frame is sandboxed and the ‘allow-forms’ permission is not set’.

Can we solve this by adding the ‘allow-forms’ permission ‘sandbox’ attribute within the I-frame?

<iframe src="afnamedashboard.html" sandbox="allow-forms"></iframe>

 

Best answer by Anne Buit

Currently, the sandboxing attributes of a previewed URL control cannot be modified. However, they do allow for an alternative to form submission. You can use javascript (XHR/XmlHttpRequest) to submit data to the server.

Would this be possible in your scenario?

Also, feel free to submit a topic in the Ideation section for configurable sandbox settings for this component.

This topic has been closed for replies.

5 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • October 17, 2022

Hi,

I’m assuming you are using the Preview control to embed the custom screen. 

Are you using an URL control as preview source or a FILE UPLOAD with an HTML file as preview source?


mprins
Rookie
  • Author
  • Rookie
  • October 17, 2022

We are using an URL control as preview source.

 


Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • Answer
  • October 17, 2022

Currently, the sandboxing attributes of a previewed URL control cannot be modified. However, they do allow for an alternative to form submission. You can use javascript (XHR/XmlHttpRequest) to submit data to the server.

Would this be possible in your scenario?

Also, feel free to submit a topic in the Ideation section for configurable sandbox settings for this component.


mprins
Rookie
  • Author
  • Rookie
  • October 17, 2022

Thanks so far, we will have a look on the given solution. 

 


mprins
Rookie
  • Author
  • Rookie
  • October 24, 2022

Give solution works for our scenario. Thanks!