I'm trying to implement user authentication login and currently trying out to configure JSS connected mode to work with https (secure connection).
Following https://jss.sitecore.com/docs/techniques/authentication/sitecore-auth document.
I got my integrated site configured with https with local cert.
Now I'm trying to use JSS start:connected to connect my app in secure channel, but I'm getting 500 error page.
But I can see data is correctly returned from the Layout service in the network tab.
Following error appears on the browser console :
Access to XMLHttpRequest at 'https://hostname/sitecore/api/layout/render/jss?item=%2F&sc_lang=en&sc_apikey=%7BA%7D' from origin 'http://localhost:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is 'true, true' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Any help would be highly appreciated