Skip to content

Commit eaa7a7c

Browse files
committed
return 403 response again
1 parent 8f77e7b commit eaa7a7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/middleware/cors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export function withCors(server: FastifyInstance) {
5656
reply.code(204).send();
5757
return;
5858
}
59+
} else {
60+
reply.code(403).send({ error: "Invalid origin." });
61+
return;
5962
}
6063
});
6164
}

0 commit comments

Comments
 (0)