feat: allow any cors
Node.js CI / Lint and Test (push) Failing after 53s

This commit is contained in:
2025-09-27 14:48:46 -07:00
parent 0e8bc1234b
commit 6849308fb5
3 changed files with 22 additions and 0 deletions
+5
View File
@@ -4,6 +4,7 @@
* @author Naomi Carrigan
*/
import cors from "@fastify/cors";
import fastify from "fastify";
import { buildRoutes } from "./modules/buildRoutes.js";
import { logger } from "./utils/logger.js";
@@ -12,6 +13,10 @@ const server = fastify({
logger: false,
});
server.register(cors, {
origin: true,
});
await buildRoutes(server);
server.get("/", async(_request, response) => {