@ -20,8 +20,9 @@ app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use(cors({
origin:['http://localhost:5000'],
origin:[process.env.webClient],
credentials:true
}))
app.use('/', indexRouter);