I'm using the google drive api to load on my websites multiple images from a folder, It works fine one month ago, now is not working anymore, I didn't change the API key and even the folder id is still the same. I can get the array correctly on my console log, I can get correctly the url of the images, if I copy the src of the tag images in my browser I can see the image correctly, but can't see it on my page.
Using Google drive API to load images from a folder give me error 403
108 Views Asked by GGKMNTN At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in GOOGLE-DRIVE-API
- Can you use the Drive API to share a file in Google Drive to an oath2 subject rather than email address?
- Write R pin to Google Drive without authentication
- Google Drive Service Account gets googleapiclient.errors.HttpError: 401 "Request is missing required authentication credential" when authenticating
- How to set expiry dates for Google Drive
- Trying to fetch images from a Google Drive folder
- How to programmatically zip/download google drive folder?
- google drive file missing
- Trigger Warning: Mysterious Memory Spike on Google Drive Upload using Google Cloud Run
- can replace file in google drive by c#?
- Images stored on google drive are not loading on a website hosted on heroku
- FileNotFoundError while trying to load dataset from drive
- Search in GDrive only the first 5 topics
- Issue with Google Drive API Integration: Unexpected HTML Response from Backend in Production Environment
- Can Google Drive act as a DB for Mobile App?
- java.lang.NoSuchMethodError: 'boolean com.google.api.client.http.HttpTransport.isMtls()'
Related Questions in HTTP-STATUS-CODE-403
- SSL certificate error 403.13 in IIS 7.5
- VVV 403 Forbidden error (vagrant)
- Error 403 when posting on Facebook a Joomla URL for multilingual site
- One of the controllers return 403 after publishing
- Ajax Call Returns 403 From Asp
- W7, apache, php: 403 Forbidden You don't have permission to access /phptest/phpinfo.php
- Google Webmaster API - Mark crawlerros as fixed
- file_get_contents won't return the source code
- 403 Error for user verification (API)
- 403 Forbidden Error with Wordpress
- Cordova Android App can't post 403 Forbidden
- AJAX POST 403 Permission Denied Error - Even though I am sending auth headers
- Python 3.5 urllib.request 403 Forbidden Error
- Prestashop 1.7.0.3-1.7.0.2 Fresh Install 403 Error
- Complicated Wordpress scenario trying to get https up and running
Related Questions in API-KEY
- youtube api quota limit of 10000api
- Beginner, I am stuck on setting up to use the GPT 3.5 model in Jupyter Notebook?
- Accessing ChatGPT API Key Securely for Public Website
- Laravel Implement Api-key and Bearer token
- When hashing an API key, should I hash the suffix / prefix as well?
- As a front end developer ,how can i easily hide my api
- 403 error when requesting Petfinder API Key
- building an oracle with chainlink to POAO
- How To Catch Invalid Firebase API key (that is entered by user)?
- Locust : Not able to use the config value from env file
- Working outside of application context when using flask_api_key
- Using google maps api key in open source GitHub repository in Flutter app
- Using Google drive API to load images from a folder give me error 403
- Handling API Keys in Angular
- What is apiSecret in the Nuxt env file?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

Current Behavior
Upon investigation, most users who use Google Drive to host files on their website are getting error 403. This is due to recent changes that browsers including Google Chrome started phasing out third-party cookies to increase privacy and security of user accounts.
Due to those changes, Google Drive starts requiring authorization for files hosted on third party services, and this affects those who use Drive's URL.
Recommended Workaround
Note: You can generate the Drive link by following the steps below:
Move files to any file hosting provider and fetch files to your website
Use Google Drive API to pull your necessary files from your Google Drive and pass it to your chosen proxy e.g. Google Cloud functions to deliver to any third-party interfaces like websites, presentation etc.
References: