Sandbox application inside iframe

Notice: This thread is very old.
phpassist
Member | 4
+
0
-

Hi all,
I'm using the sandbox application and everything works as it should, but if i'm viewing the sandbox application page throw iframe it suddenly breaks and display nothing (no php error). Do you know why or how can i fix that ?

redhead
Member | 1313
+
0
-

The problem is in X-Frame-Options HTTP header. It is set automatically by Nette and can be disabled in configuration:

nette:
        security:
                frames: ... # X-Frame-Options header value

In new versions of Nette it should default to value same-origin.

phpassist
Member | 4
+
0
-

Thanks, worked as expected!