Skip to content

API Key Restrictions Issue #552

@gacharijohn

Description

@gacharijohn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions