Skip to content

Commit

Permalink
Merge pull request #337 from ScilifelabDataCentre/frame_prevent
Browse files Browse the repository at this point in the history
Prevent from being iframed
  • Loading branch information
misterabdullahAziz authored Sep 11, 2024
2 parents 01da327 + e915084 commit 9363288
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +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 '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 9363288

Please sign in to comment.