Applications not working properly with Iframe on my non outsystems page

I made an outsystems application that I want to use as an Iframe on my main website that's not connected to outsystems in any way so far.

The application seems to be working fine when I run it independently and when I put it in an Iframe on my website it shows up like expected and looks exactly how I want it to. But as soon as the applications calls an action it seems to be blocked by the browser and the iframe is redirected to the error page.

What can I do to get the outsystems application to work with my outsystems free website?

Chrome inspect elements error:

Outsystems error log:


*Edit: I have tried updating the "Content Security Policy" with the URL of my website

Gunnar Ágústsson wrote:

I made an outsystems application that I want to use as an Iframe on my main website that's not connected to outsystems in any way so far.

The application seems to be working fine when I run it independently and when I put it in an Iframe on my website it shows up like expected and looks exactly how I want it to. But as soon as the applications calls an action it seems to be blocked by the browser and the iframe is redirected to the error page.

What can I do to get the outsystems application to work with my outsystems free website?

Chrome inspect elements error:

Outsystems error log:


*Edit: I have tried updating the "Content Security Policy" with the URL of my website

 Hi Gunnar,

Please check below post for same kind of discussion.

https://www.outsystems.com/forums/discussion/37239/cross-origin-issue-in-i-frame/ 

https://www.outsystems.com/forums/discussion/55086/device-detection-in-iframes/



 

Vijay Malviya wrote:

Gunnar Ágústsson wrote:

I made an outsystems application that I want to use as an Iframe on my main website that's not connected to outsystems in any way so far.

The application seems to be working fine when I run it independently and when I put it in an Iframe on my website it shows up like expected and looks exactly how I want it to. But as soon as the applications calls an action it seems to be blocked by the browser and the iframe is redirected to the error page.

What can I do to get the outsystems application to work with my outsystems free website?

Chrome inspect elements error:

Outsystems error log:


*Edit: I have tried updating the "Content Security Policy" with the URL of my website

 Hi Gunnar,

Please check below post for same kind of discussion.

https://www.outsystems.com/forums/discussion/37239/cross-origin-issue-in-i-frame/ 

https://www.outsystems.com/forums/discussion/55086/device-detection-in-iframes/



 

 Hey Vijay :)

Thanks for the links. I appreciate the help.


 I've already looked at them though. In the first one the outcome is that the browser is blocking the Iframe and I should open a new tab instead and in the second one they don't have a solution for my case. There must be some way to get the browser to stop blocking the Iframe if that's even the problem

 

Solution

Hey everyone :)

I found out what was wrong with my Iframes. They weren't working because chrome had changed its default cookie behaviour. Here's the Outsystems article about this: link

if you're having similar problems and this article does not help you.Then I'd recommend you check out these two:
Secure cookies
SecurityError

Solution