Skip to content

Commit ffb0045

Browse files
committed
Better enforcing of mime type for uploads
1 parent 4b8a051 commit ffb0045

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

etc/nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ http {
8484

8585
location /uploads/ {
8686
# prevent browser from possibly interpreting untrusted files
87-
add_header Content-Type "text/plain";
87+
types { }
88+
default_type text/plain;
8889

8990
alias /Kiwi/uploads/;
9091
}

0 commit comments

Comments
 (0)