Skip to content

Commit

Permalink
Allow frame for same orign (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil10 authored Oct 4, 2024
1 parent 08b43c9 commit 04c1480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VER
# Serve the generated html using nginx
FROM nginxinc/nginx-unprivileged:alpine
RUN sed -i '3 a\ absolute_redirect off;' /etc/nginx/conf.d/default.conf && \
sed -i '4 a\ add_header X-Frame-Options DENY always;' /etc/nginx/conf.d/default.conf && \
sed -i '4 a\ add_header X-Frame-Options SAMEORIGIN always;' /etc/nginx/conf.d/default.conf && \
sed -i 's/#error_page 404/error_page 404/' /etc/nginx/conf.d/default.conf
COPY --from=build /target /usr/share/nginx/html

Expand Down

0 comments on commit 04c1480

Please sign in to comment.