Logo Linux Bash SSH Ubuntu Git Menu
 

Allow only localhost for iframe

Tags:

apache-2.2

php

Running a LAMP environment, I would only like a web visible page available to load if requested by an iframe on the same host.

like image 539
jmagunia Avatar asked Apr 04 '26 08:04

jmagunia


1 Answers

You can set the x-frame-options header to sameorigin. See Mozilla reference for more information: https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options

like image 90
MaddinXx Avatar answered Apr 06 '26 23:04

MaddinXx