This application requires cookies to be enabled error while trying to show Mendix app in IFrame.

0
I am trying to show my Mendix app in the browser using an IFrame tag and I am getting this error: Cookies are enable in the browser (Google Chrome), tried the same thing with Microsoft Edge but got the same error. HTML Code: <iframe src="http://localhost:8080/" height="600" width="900" title="Iframe Example"></iframe> Is there a way to fix this? My use case involves showing the Mendix app on a webpage using an IFrame. Mendix Studio version: 9.10.1 (was not available in the version selection dropdown)
asked
2 answers
0

Try setting com.mendix.core.SameSiteCookies to None.

This is documented here: https://docs.mendix.com/refguide/custom-settings#general

Hope this helps.

answered
0

Hi Ridhwik,

 

Possibly a bit late for your project, but setting my browser settings to 'Block Third Party Cookies' = false solved it for me. Of course you need to set up the SameSite settings and CSP headers correctly as described in the docs. 

answered