connecting to front end
This commit is contained in:
@@ -8,7 +8,7 @@ require('dotenv').config();
|
||||
const secret = process.env.SECRET;
|
||||
|
||||
async function expressLoader(app) {
|
||||
app.use(cors());
|
||||
app.use(cors({ origin: "http://localhost:5173" }));
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user