For security reasons, some headers can only be controlled by the user agent. These headers include the forbidden header names and forbidden response header names.
Important note: when responding to a credentialed request, server must specify a domain, and cannot use wild carding. The above example would fail if the header was wildcarded as: Access-Control-Allow-Origin: *.