Skip to content
Discussion options

You must be logged in to vote

For us to set DENY as the default will likely be too strict, but here are some ways this could happen:

We could possibly add a feature where you could control this by a variable

I try to keep the variables to as little as possible, but if there is a strong community support behind a feature I like to build it.

You could use sed to make the change

If you are building your own image, you could just make a simple change in your Docker file:

FROM serversideup/php:frankenphp

USER root

# Replace X-Frame-Options with "DENY" regardless of current value
RUN sed -i 's/X-Frame-Options "[^"]*"/X-Frame-Options "DENY"/' /etc/frankenphp/Caddyfile

USER www-data

I usually cringe in the case when people…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marns93
Comment options

Answer selected by marns93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants