Skip to content

Instantly share code, notes, and snippets.

@anttiviljami
Last active February 26, 2016 20:20
Show Gist options
  • Save anttiviljami/541432ecc72f915d6320 to your computer and use it in GitHub Desktop.
Save anttiviljami/541432ecc72f915d6320 to your computer and use it in GitHub Desktop.
Setting a header based on upstream header
map $sent_http_x_wp_embed $frameoptions {
'' SAMEORIGIN;
'something' 'ALLOW-FROM http://mywebsite.com';
}
server {
...
add_header X-Frame-Options $frameoptions;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment