From 9990a5fd30e48f5337a5f71bf512b000337be67e Mon Sep 17 00:00:00 2001 From: Vivek Date: Thu, 25 Jul 2024 18:13:51 +0530 Subject: [PATCH] add more context to pear.links --- reference/pear/configuration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reference/pear/configuration.md b/reference/pear/configuration.md index f972149..48312d8 100644 --- a/reference/pear/configuration.md +++ b/reference/pear/configuration.md @@ -126,7 +126,11 @@ Storing and managing Pear application links and domains. `links` can be an object or an array. If it's an object, naming the key makes it easy to reference from [`Pear.config.links`](./api.md#pearconfiglinks-objectarray) -The links and domains inside need to be trusted. Any pear links that the app trusts to run (eg as a worker) must be added and any http(s) domains that the app wants to access must also be added, including localhost. +By default in Pear apps, only requests to the sidecar host (127.0.0.1:9342) are allowed. Additional hosts and trusted keys must be added in `pear.links` to allow access. + +Any Pear links that the app trusts to run (eg as a worker) must be added and any http(s) domains that the app wants to access must also be added, including localhost. + +Note that this is only for requests that the Pear app makes itself such as loading assets. ```json {