What configuration is required in Rasa platform to avoid CORS access api issue

I have configured RASA and it was running in 5002 port. I am trying to access this bot using api call from another web application developed using ReactJS. While accessing i am getting CORS error that Access to fetch at “url” from origin “url” has been blocked by CORS Policy.

Tried enabling CORS in chrome and its not working. I read somewhere that some configuration needs to change in Rasa bot side to access the api response from rasa bot. Any help here? :expressionless: