From b42cceb1dfb6e2a2ad74a722e470d2796a921e82 Mon Sep 17 00:00:00 2001 From: Varun Date: Wed, 14 May 2025 12:02:10 +0530 Subject: [PATCH] origin in cors --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b2fd6a0f..d464523d 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ const fastify = require("fastify")({ // const Fastify = require("fastify"); fastify.register(cors, { - origin: 'http://localhost:3001', // Allow only your frontend URL + origin: 'http://armintaaqua.com:3000', // Allow only your frontend URL methods: ['GET', 'POST', 'PUT', 'DELETE'], // Allowed HTTP methods });