Skip to content

Commit

Permalink
Added X-Frame-Options: deny (#6992)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored Oct 12, 2023
1 parent 848e373 commit 93a4f05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog.d/20231012_123219_andrey_x_frame_options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Security

- Added X-Frame-Options: deny
(<https://github.com/opencv/cvat/pull/6992>)
11 changes: 6 additions & 5 deletions cvat-ui/react_nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ server {
location / {
# Any route that doesn't exist on the server (e.g. /devices)
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Cross-Origin-Opener-Policy "same-origin";
add_header Cross-Origin-Embedder-Policy "credentialless";
add_header Expires 0;
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Cross-Origin-Opener-Policy "same-origin";
add_header Cross-Origin-Embedder-Policy "credentialless";
add_header Expires 0;
add_header X-Frame-Options "deny";
}

location /assets {
Expand Down
2 changes: 2 additions & 0 deletions cvat/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ http {
# previously used value
client_max_body_size 1G;

add_header X-Frame-Options deny;

server_name _;

location /static/ {
Expand Down

0 comments on commit 93a4f05

Please sign in to comment.