When you use ALLOW-FROM , you need to specify a URL, not an alternative value.
Using SAMEORIGIN explicitly blocks cross origin calls.
When using this or GOFORIT you must specify this as a single value.
So you want:
header("X-Frame-Options: GOFORIT");
Please note that GOFORIT is the default behavior, so you may have to remove other code that denies access.
Note that the X-Frame-Options header should provide permission from the page displayed in the frame , and not from the page containing the <iframe> . You cannot give yourself permission to host other sites in the frame.
source share