We have an application with a library feature that shares photos/documents between users. The basic flow and problem is as follows:
Usually the thumbnails come up just fine but sometimes we begin getting 403's. After a while they will begin working again without us changing anything. A few other items worth mentioning are:
We are guessing it isn't related to the following:
Any ideas?
Screenshot of our Google Drive quotas
My "solution" was to use the new referrerpolicy
and set it to no-referrer
in the image element.
<img referrerPolicy="no-referrer" src="GOOGLE_THUMBNAIL_IMAGE_LINK"/>
The attribute is experimental according to MDN. At time of writing, it's supported on Chrome and Firefox only, so not a real fix. The theory behind it working is the no-referrer
means the image request is the same as the one used when you go directly to the link (where the thumbnail seems to always work).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With