From 04c1480b41b6db0a769f8a77e629a58cb94ff7d7 Mon Sep 17 00:00:00 2001 From: Senthilkumar Panneerselvam Date: Fri, 4 Oct 2024 11:11:05 +0200 Subject: [PATCH] Allow frame for same orign (#344) --- Dockerfiles/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfiles/Dockerfile b/Dockerfiles/Dockerfile index 84cc1f6..13cdcde 100644 --- a/Dockerfiles/Dockerfile +++ b/Dockerfiles/Dockerfile @@ -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