0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 12:02:48 +00:00

Update CORS error message in app.js

This commit is contained in:
Víctor Losada Hernández
2024-12-08 23:46:27 +01:00
parent 23910cc94c
commit 4eb8abf1e7

View File

@@ -71,7 +71,7 @@ const corsOptions = {
callback(null, true);
} else {
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'],