0
0
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:
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); 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'],