diff --git a/backend/app/routes/search.route.js b/backend/app/routes/search.route.js index ea24b0a..a359557 100644 --- a/backend/app/routes/search.route.js +++ b/backend/app/routes/search.route.js @@ -3,6 +3,11 @@ import {search} from "../controllers/search.controller.js"; const router = Router(); +// Handle OPTIONS preflight requests +router.options('/', (req, res) => { + res.status(200).end(); +}); + router.get('/', search) export default router; \ No newline at end of file