server: enable strict routing to distinguish / at end

Frontend uses relative path and it breaks stuffs when a
frontend route is accessed with / at end.
This commit is contained in:
Jesse Chan
2020-10-22 21:57:48 +08:00
parent 39a8ce9af0
commit b4690a628e
+1
View File
@@ -31,6 +31,7 @@ if (process.env.NODE_ENV !== 'development') {
app.disable('x-powered-by');
}
app.set('strict routing', true);
app.set('etag', false);
app.set('trust proxy', 'loopback');