Skip to content

Commit c7261cf

Browse files
authored
🔧(front) configure x-frame-options to DENY in nginx conf (#1084)
The API has the response header x-frame-options configure to DENY and nothing is configure in the nginx configuring managing the frontend application. We want to have the same value. The header is added on all locations.
1 parent e504f43 commit c7261cf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to
1313
- ✨(frontend) add customization for translations #857
1414
- 📝(project) add troubleshoot doc #1066
1515
- 📝(project) add system-requirement doc #1066
16+
- 🔧(front) configure x-frame-options to DENY in nginx conf #1084
1617

1718
### Changed
1819

src/frontend/apps/impress/conf/default.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ server {
77

88
location / {
99
try_files $uri index.html $uri/ =404;
10+
11+
add_header X-Frame-Options DENY always;
1012
}
1113

1214
location ~ "^/docs/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/?$" {
1315
try_files $uri /docs/[id]/index.html;
16+
17+
add_header X-Frame-Options DENY always;
1418
}
1519

1620
error_page 404 /404.html;

0 commit comments

Comments
 (0)