Skip to content

Commit

Permalink
fix: add x-frame-origin to prevent clickjacking
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunderbottom authored Mar 7, 2019
1 parent ae9cef3 commit ecdcbb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bench/config/templates/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ server {
ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";
ssl_prefer_server_ciphers on;
{% endif %}

add_header X-Frame-Options "SAMEORIGIN";

location /assets {
try_files $uri =404;
Expand Down

0 comments on commit ecdcbb9

Please sign in to comment.