If this header is set
Access-Control-Allow-Origin: *
javascript can make a request to the domain and read the response if and only if no cookies are sent over, otherwise the javascript cannot read the response.
Generally speaking why is this header considered an insecure practice for a stateful web app that requires authentication?