Skip to content

Broken: use of CORS  #2

Description

@mebibou

A few months ago, the library was working fine to retrieve contacts. Now when trying, I have the following error:

OPTIONS https://www.google.com/m8/feeds/contacts/default/full?access_token=ya29.-QF…qvtibhiQmYUwDJl_...&alt=json&max-results=3000

XMLHttpRequest cannot load https://www.google.com/m8/feeds/contacts/default/full?access_token=ya29.-QF…qvtibhiQmYUwDJl_T...&alt=json&max-results=3000. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access. The response had HTTP status code 405.

google-auth.min.js:1 error retrieving Google contacts

Note: by using jsonp, this erreur doesn't appear. Changing line 221 in google-auth.js like this seems to fix the issue:

$http.jsonp(url + '&callback=JSON_CALLBACK')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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