facioquo / uswds-design-patterns

Design pattern Idea Book for the U.S. Web Design System
https://uswds.facioquo.com
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

card image source not always accessible #8

Closed DaveSkender closed 1 year ago

DaveSkender commented 1 year ago

When accessing the catalog, images often don't show when behind a VPN or other enterprise firewall. The error shows up as:

Request URL: https://{third-party photo inventory list URL}
Request Method: GET
Status Code: 504 Gateway Timeout (from service worker)
Referrer Policy: strict-origin-when-cross-origin

However, it's more likely that it's blocked.

image

Consider a nicer "images cannot be retrieved" user error or use a more direct / reliable image source for this demo. Possibly, host a set of usable stock images directly, without relying on third-party APIs.

Done when:

DaveSkender commented 1 year ago

Using proxy forwarding isn’t a better option