MCPcopy Create free account
hub / github.com/codecombat/codecombat / isSecure

Function isSecure

server_setup.js:189–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 // Cannot use express request `secure` property in production, due to
188 // cluster setup.
189 const isSecure = function() {
190 return this.secure || (this.headers['x-forwarded-proto'] === 'https');
191 };
192
193 return app.use(function(req, res, next) {
194 req.isSecure = isSecure;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected