Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Content Security Policy issue delivered in report-only mode #518

@michael-picard

Description

@michael-picard

Hello,
The below example used to work perfectly fine 2 weeks ago last time I worked on it.
The error thrown is from the iframe src response headers injected by apis.google.com/js/api.js.

Screenshot 2019-04-08 at 10 42 58

Is there something wrong on my end?
<script src="https://apis.google.com/js/api.js"></script>
<script>
    gapi.load('client', function () {
        gapi.client.init({
            'apiKey': '____myAPIkey_______',
            'discoveryDocs': ["https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"],
        }).then(() =>
            gapi.client.calendar.events.list({
                calendarId: '____myCalendarkey_______',
                timeMin: (new Date('2019-04-09')).toISOString(),
                timeMax: (new Date('2019-04-09T23:00:00.000Z')).toISOString(),
                showDeleted: false,
                singleEvents: true,
                maxResults: 20,
                orderBy: 'startTime',
            }))
            .then(data => console.log(data.result))
            .catch(error => console.error(error))
    })
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions