CORS misconfiguration issue for my domain.

Hi,

I need some help here because this issue is new to me. My client said that my domain www.xyz.com has CORS misconfiguration issues. He mentioned that he checked random URLs on the site and found Access-Control-Allow-Origin set to *. He wants to restrict it to only necessary domains. I searched articles, but I didn’t find any solutions related to this. If anyone has faced a similar issue, please share the solution here.