connecting to front end

This commit is contained in:
Mikayla Dobson
2023-02-01 13:59:18 -06:00
parent 0d18c1041f
commit d09f4a6145
10 changed files with 238 additions and 25 deletions

View File

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