CORS policy header contains multiple values '*, *', but only one is allowed

I am facing a cors issue. I have added the cors file in my config folder and have also linked in the kernel.php file.

This is the error I am getting.

Access to XMLHttpRequest at ‘https://shopify-app.test/api/collection’ from origin ‘https://united-sol-test-app.myshopify.com’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘*, *’, but only one is allowed.