Skip to content

Instantly share code, notes, and snippets.

@pollosp
Created March 9, 2016 15:49
Show Gist options
  • Select an option

  • Save pollosp/56081ee8c4ce05fab4ea to your computer and use it in GitHub Desktop.

Select an option

Save pollosp/56081ee8c4ce05fab4ea to your computer and use it in GitHub Desktop.
set $xheader "SAMEORIGIN";
if ($http_referer ~ "XXXX") {
set $xheader "NONE";
}
proxy_hide_header X-Frame-Options;
add_header X-Frame-Options $xheader;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment