Skip to content

Commit

Permalink
Auto formatting with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 23, 2024
1 parent 0fec4fd commit e27fe2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ const corsOptions = {
if (origin && /\.snapurl\.in$/.test(origin)) {
callback(null, true);
} else {
callback(new Error('Only requests from snapurl.in subdomains are allowed.'));
callback(
new Error('Only requests from snapurl.in subdomains are allowed.'),
);
}
} else {
// allow all origins in non-production environments
Expand Down

0 comments on commit e27fe2f

Please sign in to comment.