mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
More stuff
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
var express = require('express');
|
||||
var cors = require('cors');
|
||||
var ClusterStore = require('strong-cluster-connect-store')(express.session);
|
||||
|
||||
module.exports = function(app, config, passport, piler) {
|
||||
@ -23,6 +24,14 @@ module.exports = function(app, config, passport, piler) {
|
||||
app.use(passport.initialize());
|
||||
app.use(passport.session());
|
||||
|
||||
// allow cors
|
||||
app.use(cors({
|
||||
origin: function(origin, callback) {
|
||||
callback(null, true);
|
||||
},
|
||||
credentials: true
|
||||
}));
|
||||
|
||||
// use piler for asset management
|
||||
piler.bind();
|
||||
|
||||
|
Reference in New Issue
Block a user