chrishubert / whatsapp-api

This project is a REST API wrapper for the whatsapp-web.js library, providing an easy-to-use interface to interact with the WhatsApp Web platform.
https://www.christophehubert.com
Other
581 stars 286 forks source link

CORS Error #183

Open Harshalkatakiya opened 3 months ago

Harshalkatakiya commented 3 months ago

I am developing frontend in Next Js for this All API endpoints. and I ma getting CORS Error. please allow CORS for all client Origins.

Harshalkatakiya commented 3 months ago

I fixed the error by adding these lines of code in app.js file:

const cors = require('cors') app.use(cors())