2017-05-29 151 views
0

Unsplash更喜歡他們提供的來自url的API熱鏈接圖像的用戶。Hotlinking Unsplash圖像導致破碎圖像

似乎是愚蠢的,會問這個,但出於某種原因想熱鏈接的圖像,其URL我從Unsplash API搶當這種簡單的代碼是不工作:

<img src="https://images.unsplash.com/photo-1484995342839-a9eb42974616?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&s=3c7ad78ab40416cdfae002147d8b8003"> 

該網址來在他們的GET照片響應中找到:photo.urls.small

這可能是我的一個小小的疏忽,任何人都看到我的錯誤?

回答

0

當我測試它的代碼工作。可能是緩存問題?

<img src="//images.unsplash.com/photo-1484995342839-a9eb42974616?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&s=3c7ad78ab40416cdfae002147d8b8003"> 
+1

想通了 - 隱私獾插件黑名單。奇怪的。 – suprafly

0

問題是Chrome上的一個擴展,名爲Privacy badger,它將鏈接列入黑名單。