Allowing media hosts


Currently we’re building a webshop, and we’re moving to the pilot phase. As a part of this I’ve connected pictures from the customer’s live webshop to his products in Novulo. How do I allow these media to be downloaded internally?

The message I get is “The specified host is not allowed” or “De opgegeven host is niet toegestaan” when in Dutch, by calling a URL using the NovuloFileExtensions plug-in, build 103923.

1 Like

Hey @Bas

Go to deployment and chose the instance for which you want to allow getting files from a URL. Add a new web.config setting like so
image

Fill in the “value” field with the host of the images/files that you want to download.

After that, create a new installation of type “update”. This will ensure that the settings from deployment will take effect in your application.

1 Like

For the Allowed Hosts: they must be written without http:// or https:// or ftp://
That probably makes the difference for your case Bas :slight_smile:

If you want to add more than one host, please separate them with the semicolon ;
Also make sure there are no spaces before or after the semicolon.

So for example
www.firstdomain.com;cdn.seconddomain.com

Also, please make sure every app setting only exists once! If there’s already an app setting with that name, please add the second domain to that setting

2 Likes

Thank you J&J.

On a related note, how do we handle files which URL are too long to import?

Hey Joachim, FYI, I found that the imported images get sorted under the type ‘file’ rather than ‘image’. I fixed it manually right now so there’s no urgency, but this could cause some minor issues if you display images and documents seperately like I do for my current project.