Can't integrate rasa chatbot with my frontend loacalhost website

  File "d:\Projects\Rasa\.venv\lib\site-packages\rasa\core\channels\", line 143, in receive
    sender_id = await self._extract_sender(request)
  File "d:\Projects\Rasa\.venv\lib\site-packages\rasa\core\channels\", line 56, in _extract_sender
    return req.json.get("sender", None)
AttributeError: 'list' object has no attribute 'get'

My payload in javascript is correctly sending the data in json format, but still facing this error. Anyone please help asap