Integrate with WhatsApp

i am trying to integrate WhatsApp with Rocket chat api through an API
i used this http://{rocketchat-workspace}/api/apps/private/{application-id}/templateMessage
i got blocked by CORS policy
Access to XMLHttpRequest at ‘https://eondentaltest.rocket.chat/api/apps/private/1187611368922822/templateMessage’ from origin ‘http://localhost:5173’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

and the CORS enabled from my setting Rocketchat app , how i can solve this issue ?

I’d suggest you start by giving us some server details as per this

Then describe in a little more detail what you have done so far. I presume you are running some sort of local daemon that is trying to communicate with the workspace?

I’d also have a read on your error with a generic search for something like this:

origin ‘http://localhost:5173’ has been blocked by CORS policy

You need to try and understand why that URL is blocked.