Open
Description
I am running image proxy behind nginx. Images are proxied for most blogs, but not for posts coming from Substack.
Here is an example image:
<img
data-omnivore-anchor-idx="11"
data-omnivore-original-src="https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg"
src="https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg"
width="600"
height="600"
data-attrs='{"src":"https://substack-post-media.s3.amazonaws.com/public/images/4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg","srcNoWatermark":null,"fullscreen":null,"imageSize":null,"height":600,"width":600,"resizeWidth":null,"bytes":null,"alt":null,"title":null,"type":null,"href":null,"belowTheFold":false,"topImage":true,"internalRedirect":null,"isProcessing":false}'
alt=""
srcset="
https://myinstance.com/images/424x0,
sQv7a4e4hZ3xUkdjV7Hs9Ptx0fVNIw8Zj_-bhF6AhnXU/https://substackcdn.com/image/fetch/w_424,
c_limit,
f_auto,
q_auto:good,
fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg 424w,
https://myinstance.com/images/848x0,
stTzSFU_ONrbyl0Qpz2_XrysGmMJtU5gDuPlA6VaHpm0/https://substackcdn.com/image/fetch/w_848,
c_limit,
f_auto,
q_auto:good,
fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg 848w,
https://myinstance.com/images/1272x0,
sLZG1Y1qIcZg6m-HGwOnat0_qfIFlxpJmJgqstsm667g/https://substackcdn.com/image/fetch/w_1272,
c_limit,
f_auto,
q_auto:good,
fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg 1272w,
https://myinstance.com/images/1456x0,
sKqmVcbrw_-OtgAhuy3dvDbmaeuMZGc5GNrNKQPm9k10/https://substackcdn.com/image/fetch/w_1456,
c_limit,
f_auto,
q_auto:good,
fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg 1456w,
"
sizes="100vw"
fetchpriority="high"
style="cursor: zoom-in;"
/>
When I navigate to this image in the browser, I get requested URL is not allowed
.
The image proxy logs show
request does not contain an allowed host or valid signature: https://substackcdn.com/image/fetch/w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https:/substack-post-media.s3.amazonaws.com/public/images/4039c96c-41b9-4451-9814-90c95dd4cf22_600x600.jpeg#1456x0,s7WL8RRJ-6KZKHk9dU1Ck7K5OhSeveGeEWKYMCFROHwU
This apparently comes from https://github.com/willnorris/imageproxy/blob/572ad2db78ed5ad6b892cedb92899ef412144409/imageproxy.go#L304
Any ideas where this comes from?
Metadata
Metadata
Assignees
Labels
No labels