Skip to content

Commit

Permalink
Add cross-links to guide
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Jun 29, 2024
1 parent 460ca9a commit 3acb84d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions files/en-us/web/api/requestinit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ You can also construct a `Request` with a `RequestInit`, and pass the `Request`
- {{jsxref("TypedArray")}}
- {{domxref("URLSearchParams")}}

See [Setting a body](/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_a_body) for more details.

- `browsingTopics` {{optional_inline}} {{experimental_inline}}

- : A boolean specifying that the selected topics for the current user should be sent in a {{httpheader("Sec-Browsing-Topics")}} header with the associated request.
Expand Down Expand Up @@ -98,6 +100,8 @@ You can also construct a `Request` with a `RequestInit`, and pass the `Request`

Including credentials in cross-origin requests can make a site vulnerable to {{glossary("CSRF")}} attacks, so even if `credentials` is set to `include`, the server must also agree to their inclusion by including the {{httpheader("Access-Control-Allow-Credentials")}} in its response. Additionally, in this situation the server must explicitly specify the client's origin in the {{httpheader("Access-Control-Allow-Origin")}} response header (that is, `*` is not allowed).

See [Including credentials](/en-US/docs/Web/API/Fetch_API/Using_Fetch#including_credentials) for more details.

Defaults to `same-origin`.

- `headers` {{optional_inline}}
Expand All @@ -109,6 +113,8 @@ You can also construct a `Request` with a `RequestInit`, and pass the `Request`

If the `mode` option is set to `no-cors`, you can only set {{glossary("CORS-safelisted request header", "CORS-safelisted request headers")}}.

See [Setting headers](/en-US/docs/Web/API/Fetch_API/Using_Fetch#setting_headers) for more details.

- `integrity`

- : Contains the [subresource integrity](/en-US/docs/Web/Security/Subresource_Integrity)
Expand Down Expand Up @@ -152,6 +158,8 @@ You can also construct a `Request` with a `RequestInit`, and pass the `Request`
- `websocket`
- : Used only when establishing a [WebSocket](/en-US/docs/Web/API/WebSockets_API) connection.

See [Making cross-origin requests](/en-US/docs/Web/API/Fetch_API/Using_Fetch#making_cross-origin_requests) for more details.

Defaults to `cors`.

- `priority` {{optional_inline}}
Expand Down

0 comments on commit 3acb84d

Please sign in to comment.