forked from loafle/openapi-generator-original
* add withCredentials to the configuration 1. `withCredentials` in Request is `false` default 2. if want to set the `withCredentials` as `true` (for CORS request), instance `Configuration` object and set the `withCredentials` as `true`. * simplify the code according to the code review