Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Fix comparison
Forgot the `-` sign
  • Loading branch information
vbrandl committed Jun 20, 2017
commit 207f9cd1ee3ea2a12fec53d3d59f72cdbd731c9f
2 changes: 1 addition & 1 deletion core/js/setupchecks.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
};

for (var header in securityHeaders) {
if(!xhr.getResponseHeader(header) || xhr.getResponseHeader(header).toLowerCase().indexOf(securityHeaders[header].toLowerCase()) === 1) {
if(!xhr.getResponseHeader(header) || xhr.getResponseHeader(header).toLowerCase().indexOf(securityHeaders[header].toLowerCase()) === -1) {
messages.push({
msg: t('core', 'The "{header}" HTTP header is not configured to equal to "{expected}". This is a potential security or privacy risk and we recommend adjusting this setting.', {header: header, expected: securityHeaders[header]}),
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
Expand Down