Skip to content

Commit 3af2843

Browse files
committed
X-Craft-Site availability
1 parent 401f44e commit 3af2843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/5.x/development/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ When sending a JSON payload in the body of a request, you _must_ use an action p
267267

268268
In [headless](config5:headlessMode) mode, and when using [actions](#actions) or otherwise site-agnostic routes (i.e. configured via the [Element API](plugin:element-api) plugin), Craft uses the [primary site](../system/sites.md#primary-site), by default. This means that element queries, static message translations, emails, and other language-dependent features may be handled in unexpected ways.
269269

270-
Send a valid site ID or handle under the `X-Craft-Site` header to tell Craft that it should handle the request in the context of a specific site:
270+
Send a valid site ID or handle under the `X-Craft-Site` header <Since ver="5.6.0" feature="The X-Craft-Site header" /> to tell Craft that it should handle the request in the context of a specific site:
271271

272272
```js{8}
273273
// Assuming there is a matching Element API route configured...

0 commit comments

Comments
 (0)