Skip to content

Load denied by X-Frame-Options - does not permit cross-origin framing #209

@paragjoshi

Description

@paragjoshi

I tried to run the sample code as given here :
https://developers.google.com/youtube/v3/code_samples/javascript

When I tried to load html using http://localhost/, I immediately get the error in subject line as in:
Load denied by X-Frame-Options: https://accounts.google.com/o/oauth2/auth?client_id= ... &origin=http%3A%2F%2Flocalhost%3A5000 ... (so on) ... does not permit cross-origin framing

The html just contains the following script tags (exactly as in the sample html file).

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="auth.js"></script>
<script src="search.js"></script>
<script src="https://apis.google.com/js/client.js?onload=googleApiClientReady"></script>

Can anybody please explain / help to fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions