Rasa X socket.io CORS issue

I am using rasa x and integrated assistant API using socket.io in one angular widget. But i am getting CORS issue because widget is running on different port like (loclhost:4200) and rasa x is running on localhost:5002. I know in normal rasa scenario we can start the model using cors enable option like rasa run --cosrs “*” but I want to have fix for rasa x. I tried to search a lot but everywhere getting option for rasa only.