|
|
@ -27,7 +27,7 @@ const fastify = require("fastify")({
|
|
|
|
// const Fastify = require("fastify");
|
|
|
|
// const Fastify = require("fastify");
|
|
|
|
|
|
|
|
|
|
|
|
fastify.register(cors, {
|
|
|
|
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
|
|
|
|
methods: ['GET', 'POST', 'PUT', 'DELETE'], // Allowed HTTP methods
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|