data2health / website

Issues related to the CD2H website (https://ctsa.ncats.nih.gov/cd2h/home)
0 stars 0 forks source link

modernizr nosniff issue #83

Closed eichmann closed 4 years ago

eichmann commented 4 years ago

Disabled nosniff on headers in .htaccess temporarily to resolve modernizr.js mime issue. We need to establish the real cause and resolve it, then reenable nosniff

eichmann commented 4 years ago

Further digging - mimetype coming back for modernizr is text/html. Setting an explicit application/javascript in .htaccess doesn't resolve this.

eichmann commented 4 years ago

Added the following to .htaccess to force things

<Files *.js> ForceType application/javascript Header set Content-Type "application/javascript" </Files> <Files *.css> ForceType text/css Header set Content-Type "text/css" </Files>