Use CORS in front of static server

This commit is contained in:
Michael Jackson 2019-01-30 08:05:19 -07:00
parent 42abd00e2f
commit d560b6281f
1 changed files with 1 additions and 1 deletions

View File

@ -27,6 +27,7 @@ app.disable('x-powered-by');
app.enable('trust proxy');
app.use(logger);
app.use(cors);
app.use(staticFiles);
// Special startup request from App Engine
@ -38,7 +39,6 @@ app.get('/_ah/start', (req, res) => {
app.get('/', serveMainPage);
app.use(redirectLegacyURLs);
app.use(cors);
app.use(
'/api',