Skip to content
Snippets Groups Projects
Commit 96e025af authored by Falk's avatar Falk :ping_pong:
Browse files

chore: Output more information about CORS-origin.

parent 9daf8223
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ const corsOptions = {
if(!origin) return callback(null, true);
if(whitelist.indexOf(origin) === -1){
var message = "The CORS policy for this origin doesn't " +
"allow access from the particular origin.";
`allow access from the particular origin. (Origin: ${origin})`;
return callback(new Error(message), false);
}
return callback(null, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment