A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/ja/docs/Web/API/EventSource/withCredentials below:

EventSource.withCredentials - Web API | MDN

EventSource.withCredentials

Baseline Widely available

withCredentials は EventSource インターフェイスの読み取り専用プロパティで、この EventSource オブジェクトが CORS 資格情報が設定してインスタンス化されたかどうかを示す論理値を返します。

値

この EventSource オブジェクトが CORS 資格情報を設定してインスタンス化されたのか (true) あるいはそうでないのか (false、既定値) を示す論理値です。

例
const evtSource = new EventSource("sse.php");
console.log(evtSource.withCredentials);

メモ: 完全な例は GitHub で見られます。 PHP を用いた簡単な SSE のデモ を参照してください。

仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4