From 731249d58830c5214bf466c503a29745ebf50b20 Mon Sep 17 00:00:00 2001 From: Vivek Singh <47470314+heyitsvi@users.noreply.github.com> Date: Thu, 25 Jul 2024 05:53:22 -0700 Subject: [PATCH] add more context to pear.links (#120) --- 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 {