Ok, yes, I could go to the actual support forums for my server application, but, as I hate registering on forums just for a one off that I consider of extremely little consequence, as I use this server app for very minimal development work before actually copying to a sandbox domain on Dreamhost, I thought I'd bring this here in case anyone had any ideas or come across any quirks like this before.
Spouse and I have an app. It outputs search results and does certain stuff with it. We decided to also list sample images.
I've spent 2 hours to determine that it was NOT some PHP erroring or html output from it, but instead, it was my dev server not working the way I expect.
It's not allowing display of images src linked from another site.
Once I copied to dreamhost, the images displayed fine.
On a local machine, I'm using a free http server called Abyss (http://aprelium.com/
) with PHP 5 cgi.
When I load the HTML below in it from my server: https://jamminr.punked.us/test_img.html
Firefox - no images or alternate text show
MS Internet Explorer 11 - images show fine
MS Edge - Alternate text shows with broken image
Iphone/Safari - Alternate text shows with broken image
Using Dreamhost, the images load fine (at least, tested on 2 of the above browsers)
If I doubleclick the file from Win file explorer from the local shared URI, it also loads the images fine, so, as you might expect, this leads me to believe with 98% certainty that it's my server app.Question
- Anyone here have any ideas why this server app might not allow loading images linked to another domain?
I have quite a bit of control of custom headers. I modified a header I thought might be causing it, but it didn't change.
Using example code;
<title>Silly json list testing</title>
<meta charset="utf-8" />
<li><img src="https://img1.etsystatic.com/177/0/6683757/il_170x135.1133612953_xlbe.jpg" alt="Example image" /></li>
<li><a href="https://www.etsy.com/listing/460948572/the-original-i-drink-coffee-like-a?utm_source=creativespricing&utm_medium=api&utm_campaign=api">The Original, "I Drink Coffee Like A Gilmore Girl" - ToGo Travel Mug</a></li>
<li><img src="https://img0.etsystatic.com/101/0/12476437/il_170x135.1063461760_a78q.jpg" alt="Example image" /></li>
<li><a href="https://www.etsy.com/listing/485827917/wall-art-watercolor-stars-hollow-map?utm_source=creativespricing&utm_medium=api&utm_campaign=api">Wall Art Watercolor Stars Hollow Map Print,Gilmore Girls Print,Lorelai and Rory,Gazebo Gilmore Girls,Tv Show Poster,Luke&#39;s Diner,Printable</a></li>
<li><img src="https://img0.etsystatic.com/116/0/8046764/il_170x135.983066190_lywt.jpg" alt="Example image" /></li>
<li><a href="https://www.etsy.com/listing/397942865/drinking-coffee-like-a-gilmore-glitter?utm_source=creativespricing&utm_medium=api&utm_campaign=api">Drinking Coffee Like A Gilmore Glitter Travel Mug - Gilmore Girls Mug - Glitter Mug - Travel Cup - Glitter Tumbler - Travel Mug With Lid</a></li>