X-Content-Type-Options and Content-Disposition on user uploads
A user uploads an HTML file named photo.png. A browser that sniffs content types renders it, with your origin's cookies.
X-Content-Type-Options: nosniff
Content-Disposition: attachment; filename="photo.png"Better still, serve uploads from a separate domain. The two headers are the minimum on the same one.
securityhttp