You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The app returned by express() is in fact a JavaScript Function, designed to be passed to Node's HTTP servers as a callback to handle requests. This enables you to provide both HTTP and HTTPS versions of your app with the same code base easily, as the app does not inherit from these (it is simply a callback):
var express = require('express');
var https = require('https');
var http = require('http');
var app = express();
http.createServer(app).listen(80);
https.createServer(options, app).listen(443);
Tagging as an enhancement; I can see this being useful.
With
lineman run
the app can only be accessed from http://localhost:[port]This makes it nigh impossible to develop apps that tap oAuth2 systems that require the calling app to be secure.
The text was updated successfully, but these errors were encountered: