Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Key Restrictions Issue #552

Open
gacharijohn opened this issue Apr 2, 2024 · 0 comments
Open

API Key Restrictions Issue #552

gacharijohn opened this issue Apr 2, 2024 · 0 comments

Comments

@gacharijohn
Copy link

gacharijohn commented Apr 2, 2024

Issue: If Application restrictions are set on the API key, as illustrated here: https://prnt.sc/tmB4l_fJhf-- , the error below is rendered on the calendars:

`While trying to retrieve events, Google returned an error:

{
"error": {
"code": 403,
"message": "Requests from referer \u003cempty\u003e are blocked.",
"errors": [
{
"message": "Requests from referer \u003cempty\u003e are blocked.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "API_KEY_HTTP_REFERRER_BLOCKED",
"domain": "googleapis.com",
"metadata": {
"service": "calendar-json.googleapis.com",
"consumer": "projects/145630074084"
}
}
]
}
}

Please ensure that both your Google Calendar ID and API Key are valid and that the Google Calendar you want to display is public.

Only you can see this notice.`

Expected Output: Restrictions on the API key should not lead to calendars rendering the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant