As discussed with @chadkouse in #1.
When providing authenticated requests with the withCredentials option, CORS requires you to set a specific host in the Access-Control-Allow-Origin header. CORS doen not allow a wildcard (*) origin for authenticated requests.
We could implement an option which dynamically sets the Access-Control-Allow-Origin header equal to the request's Origin. This would enable to allow authenticated cross-origin requests coming from anywhere.
As discussed with @chadkouse in #1.
When providing authenticated requests with the
withCredentialsoption, CORS requires you to set a specific host in the Access-Control-Allow-Origin header. CORS doen not allow a wildcard (*) origin for authenticated requests.We could implement an option which dynamically sets the
Access-Control-Allow-Originheader equal to the request'sOrigin. This would enable to allow authenticated cross-origin requests coming from anywhere.