Skip to content

Commit

Permalink
2025/01/17 時点の英語版に基づき更新
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuji09 committed Jan 30, 2025
1 parent 3e7ab25 commit c8156cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/ja/web/api/request/credentials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ title: "Request: credentials プロパティ"
short-title: credentials
slug: Web/API/Request/credentials
l10n:
sourceCommit: 09937df677a7c057656d7a2f5fcab7699b1e4bb9
sourceCommit: d6528c3d7881662e6aaa77cd2a1a49e3af349088
---

{{APIRef("Fetch API")}}
{{APIRef("Fetch API")}}{{AvailableInWorkers}}

**`credentials`** は {{domxref("Request")}} インターフェイスの読み取り専用プロパティで、[`credentials`](/ja/docs/Web/API/RequestInit#credentials) オプションで指定された {{domxref("Request.Request()", "Request()")}} コンストラクターの値を反映します。このプロパティは、ブラウザーがリクエストに資格情報を送信するかどうか、また、**`Set-Cookie`** レスポンスヘッダーが尊重されるかどうかを決定します。

Expand All @@ -31,7 +31,7 @@ l10n:

```js
const request = new Request("flowers.jpg");
const request = request.request; // 既定で "same-origin" を返す
const credentials = request.credentials; // 既定で "same-origin" を返す
```

## 仕様書
Expand Down

0 comments on commit c8156cc

Please sign in to comment.