public function allowCredentials($allow = true) { $this->settings->setRequestCredentialsSupported($allow); return $this; }