CORS enablement for rasa core running over https

I have Rasa core and action servers running as pods in kubernetes cluster. I have enabled CORS using traefik ingress settings but that only works when sending traffic over http but not https. Also, I have enabled https in rasa core service which responds with Hello from Rasa: 3.2.7 message. But I’m getting below error when hitting the core service url through web app.

Access to XMLHttpRequest at 'https://core.company.com:5005/socket.io/?EIO=4&transport=polling&t=OPJurnL' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I read few articles/forums where we can enable CORS headers for https traffic in the application code in file config.yml or endpoints.yml or etc. Not sure how.

Please let me know if additional info is required and how can we achieve this. Any help is highly appreciated.

Hi @AlexD, what’s the complete rasa run command you are using to run the server?

I found the issue. In rasa run command, I was escaping the quotes with slash for cors "--cors","\"*\"" when the right format is "--cors","*", Thanks for response @rasa_learner by the way.

Hello @rasa_learner could you help me please to understand it ? BenefitsCal