Ask Your Question
1

The API key I'm working with seems to have a referrer restriction, even though I only want it to be limited to Google Drive API. How can I fix this issue?

asked 2021-05-18 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-09-30 05:00:00 +0000

bukephalos gravatar image

You can try adding "https://www.googleapis.com" to the list of allowed referrers for the API key. This should limit the use of the API key to requests coming from the Google Drive API. To do this, go to the Google Cloud Console, select your project and then navigate to the Credentials page for your API key. Under the section "Application restrictions," select "HTTP referrers" and add "https://www.googleapis.com" to the list of allowed referrers. Save the changes and try using the API key again.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-18 11:00:00 +0000

Seen: 24 times

Last updated: Sep 30 '21