简体   繁体   中英

image url from uploaded wordpress not showing to my website

I can`t use images uploaded from a worpress site to my custom site.

In my site i use an import from feed where image name is an URL.

The url with image is opening fine in new tab (if i inspect the source and open url)...but in my site the image is not showing.

In console also get: Failed to load resource: the server responded with a status of 404 (Not Found)

In my source code the image url is there:

<img class="img-responsive" style="max-height: 400px;" src="https://website.com/wp-content/uploads/2017/10/image_name.png" alt="image_name">

I am having this problem ONLY with this wordpress site with image urls, from other sites the image urls are working fine.

Could be a wordpress restriction or something like that?

The origin server checks the referer header of image requests - maybe to prevent embedding images on unknown websites.

There are ways to prevent sending referer headers like:

<meta name="referrer" content="no-referrer">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM