Hi all,
apologies for the potentially obvious question, but I am currently building a NextJS app.
I have a directory full of publicly accessible images. You can try one here: https://storage.cloud.google.com/business-guides.appspot.com/axminster_chamber_of_commerce/Yv9gYXejOwh4nlQfsnAK4SpgLyj1/01bb268a-4fba-4a3e-8556-74666851a692/WhatsApp-20Image-202022-09-07-20at-202.31.28-20PM.webp
I can upload files just fine. I can view files at that link above just fine from any browser if navigating there directly.
Within my app, I have img tags pointing at the above in the src parameter. You’d expect that to just work, but somehow it doesn’t.
Here is what appears to be happening: When accessing the image directly in browser, I get a 307 redirect ultimately leading to:
While in my app I get a 302 redirect to a URL starting with: https://accounts.google.com/ServiceLogin?service=cds&passive=1209600&continue=https://storage.cloud.google.com/business-guides.appspot.com/axminster_chamber_of_commerce/Yv9gYXejOwh4nlQfsnAK4SpgLyj1/01bb268a-4fba-4a3e-8556-74666851a692/WhatsApp-20Image-202022-09-07-20at-202.31.28-20PM.webp&followup=https://storage.cloud.google.com/business-guides.appspot.com/axminster_chamber_of_commerce/Yv9gYXejOwh4nlQfsnAK4SpgLyj1/01bb268a-4fba-4a3e-8556-74666851a692/WhatsApp-20Image-202022-09-07-20at-202.31.28-20PM.webp
If you copy that into your browser, it will eventually lead to the same place that the 307 redirect above leads to.
So, it would appear that image files in my html are treated differently and I just can’t figure out why. Any ideas? I’d be most grateful for any help.