Skip to content

Commit

Permalink
[FIX] Set x-content-type-options: nosniff header (#16232)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviral243 authored May 30, 2020
1 parent 6737956 commit b520907
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/cors/server/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ WebApp.rawConnectHandlers.use(function(req, res, next) {
// XSS Protection for old browsers (IE)
res.setHeader('X-XSS-Protection', '1');

// X-Content-Type-Options header to prevent MIME Sniffing
res.setHeader('X-Content-Type-Options', 'nosniff');

if (settings.get('Iframe_Restrict_Access')) {
res.setHeader('X-Frame-Options', settings.get('Iframe_X_Frame_Options'));
}
Expand Down

0 comments on commit b520907

Please sign in to comment.