From ca9144ba73a4ac1f9e3396823efb9b4510804c4e Mon Sep 17 00:00:00 2001 From: Maarten Bruna <14947039+ictbeheer@users.noreply.github.com> Date: Fri, 24 Oct 2025 15:04:32 +0200 Subject: [PATCH] feat: allow remote assets for lando --- src/Basic.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Basic.php b/src/Basic.php index 08e1bbb..a07eb0e 100644 --- a/src/Basic.php +++ b/src/Basic.php @@ -210,6 +210,10 @@ public function configure() ->addDirective(Directive::SCRIPT, [ 'http://localhost:*', 'https://localhost:*', 'ws://localhost:*']) ->addDirective(Directive::IMG, [ 'http://localhost:*', 'https://localhost:*', 'ws://localhost:*']) ->addDirective(Directive::STYLE, [ 'http://localhost:*', 'https://localhost:*', 'ws://localhost:*']); + + if (env('LANDO_REMOTE_ASSETS_URL')) { + $this->addDirective(Directive::IMG, env('LANDO_REMOTE_ASSETS_URL')); + } } } }