mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 02:52:38 +00:00
Update CORS error message in app.js
This commit is contained in:
@@ -71,7 +71,7 @@ const corsOptions = {
|
|||||||
callback(null, true);
|
callback(null, true);
|
||||||
} else {
|
} else {
|
||||||
console.log(origin, 'not allowed');
|
console.log(origin, 'not allowed');
|
||||||
callback(new Error('Not allowed by CORS'));
|
callback(new Error('Not allowed by CORS, if you think this is an error, please contact us'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
||||||
|
|||||||
Reference in New Issue
Block a user