Last active
February 26, 2016 20:20
-
-
Save anttiviljami/541432ecc72f915d6320 to your computer and use it in GitHub Desktop.
Setting a header based on upstream header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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