Got a temporary solution. The issue is with cloudflare tunnel. Use ngork instead of Cloudflare tunnel.
- Install ngrok in your system.
- Create a free account in ngrok. And go to Domains and create a Domain and copy it.
- Then change the port number in command from 80 to 8080 . Run the command in local to create a tunnel. eg. ngrok http --domain=xxx-xxxxxxxxx-xxxxxx.ngrok-free.app 8080
Replace with your created domain - Then open another command line interface and run npm run dev – --tunnel-url=“xxx-xxxxxxxxx-xxxxxx.ngrok-free.app:8080”
