Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions production/shared-files/proxy-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ http {
ssl_certificate /etc/nginx/cert.crt;
ssl_certificate_key /etc/nginx/key.key;

# Security Headers added here to Prevent Clickjacking
add_header X-Frame-Options "DENY" always;
add_header Content-Security-Policy "default-src 'self'; frame-ancestors 'none';" always;
#Mentioning headers to prevent XSS attacks and not to load any <iframe> on to the page

# All api requests go to rails server
location /api {
proxy_set_header Host $host;
Expand Down