origin in cors

master^2
Varun 5 months ago
parent 29374545d7
commit b42cceb1df

@ -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
});

Loading…
Cancel
Save