Merge branch 'master' of wopr.rodax-software.com:lqdvi/app2-api
This commit is contained in:
commit
3389c52730
@ -43,7 +43,7 @@ app.use(methodOverride());
|
||||
app.use(helmet());
|
||||
|
||||
// enable CORS - Cross Origin Resource Sharing
|
||||
var allowedOrigins = ['http://localhost:8080', 'http://127.0.0.1:8080'];
|
||||
var allowedOrigins = ['http://localhost:8080', 'http://127.0.0.1:8080', 'https://adminapp2.loquedeverdadimporta.org'];
|
||||
|
||||
app.use(cors({
|
||||
origin: function (origin, callback) { // allow requests with no origin
|
||||
|
||||
@ -107,6 +107,7 @@ function addMember(listId, member) {
|
||||
if ((error.status == 400) && (error.title == 'Member Exists')) {
|
||||
resolve(getMember(listId, memberMailchimp));
|
||||
} else {
|
||||
console.log(error);
|
||||
reject(error);
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user