6

I'm using Drupal core 8.0.0-beta10. I just tried to add new basic page content that contains image to external website and while it's showing up in preview, image isn't showing up once page is published and when I hover over broken image it tells me following:

This image has been removed. For security reasons, only images from the local domain are allowed.

How do I override this?

11

First, you need to know which input text filter you have enabled where the images are not showing. For the sake of this answer, let's say it's the "Basic HTML" input filter.

Go to the configuration for this input filter, such as /admin/config/content/formats/manage/basic_html

Scroll down to "Enabled Filters" and look for:

"Restrict images to this site"
Disallows usage of tag sources that are not hosted on this site by replacing them with a placeholder image.

enter image description here

If you can not view externally-hosted images, it is likely this filter is enabled. Simply disable this filter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.