Solved

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

  • 17 October 2022
  • 5 replies
  • 92 views

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>

 

icon

Best answer by Anne Buit 17 October 2022, 13:10

View original

This topic has been closed for comments

5 replies

Userlevel 7
Badge +5

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?

We are using an URL control as preview source.

 

Userlevel 7
Badge +5

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.

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

 

Give solution works for our scenario. Thanks!