Doesn't match the allowedUris policy. These URIs are allowed:

Hello again…

I googled this but couldn’t find a solution. I’m setting up a new theme and when I try to build or start dev server I get the following errors for image includes (bg-…). How can I add my domain to the allowedUris? Can this be disabled altogether?

XXXXXXXX-ylzwe@chile-www:~/XXXXXXXX.cl/bedrock/web/app/themes/XXXXXXXXtv$ yarn build
yarn run v1.22.19
$ bud build

✘  sage ./public [2e9eb2770c516cfa520d]
│
├─ ✘ error
│ ModuleNotFoundError: Module not found: Error: https://cdn.XXXXXXXX.cl/app/uploads/f4658629d6a60006.webp doesn't match the allowedUris policy. These URIs are allowed:
│  - https://gist.githubusercontent.com/
│  - https://raw.githubusercontent.com/
│  - https://unpkg.com/
│  - https://cdn.skypack.dev/
│
├─ ✘ error
│ **ModuleNotFoundError: Module not found: Error: https://cdn.XXXXXXXX.cl/wp-content/uploads/cotizar-backdropjpg-min.jpg doesn't match the allowedUris policy. These URIs are allowed:**
│  - https://gist.githubusercontent.com/
│  - https://raw.githubusercontent.com/
│  - https://unpkg.com/
│  - https://cdn.skypack.dev/
│
├─ ✘ error
│ ModuleNotFoundError: Module not found: Error: **https://cdn.XXXXXXXX.cl/app/uploads/f4658629d6a60006.webp doesn't match the allowedUris policy. These URIs are allowed:**
│  - https://gist.githubusercontent.com/
│  - https://raw.githubusercontent.com/
│  - https://unpkg.com/
│  - https://cdn.skypack.dev/
│
├─ entrypoints
│ ├─ app
│ │ ├─ js/runtime.d28a0a.js    921 bytes
│ │ ├─ js/575.4b71f1.js        209 bytes
│ │ └─ js/app.8c2965.js          5.92 kB
│ └─ editor
│   ├─ js/runtime.d28a0a.js    921 bytes
│   ├─ js/575.4b71f1.js        209 bytes
│   ├─ css/editor.31d6cf.css
│   └─ js/editor.8f1742.js     370 bytes
│
├─ assets
│ └─ images/.gitkeep.31d6cf
│
│
└─ compiled 21 modules in 6s 563ms


[bud@6.4.3] [sage] › ✘  error     Error: compilation completed but had errors 
    at Dashboard.stats (file:///home/XXXXXXXX-ylzwe/XXXXXXXX.cl/bedrock/web/app/themes/XXXXXXXXtv/node_modules/@roots/bud-dashboard/lib/service.js:65:28)

exiting with code 1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```

Thanks

It happened to my also after upgrading from 6.3.3 to 6.4.4
I could not find any solution either

It’s getting tripped up trying to load your assets as a remote module.

Either add the cdn to your allowedUris:

bud.cdn.setAllowedUris([`https://cdn.xxxxxx.cl/`])

Or disable it altogether:

bud.cdn.disable()

these methods do not return the bud instance so use bud.tap if needed.