I am making an ajax call from my client to the google oauth 2 API
'https://accounts.google.com/o/oauth2/auth?redirect_uri=http://blah.com&response_type=token&client_id....' to get the access token, but i get following error:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access
I want the call to be ajax so that the user is not disturbed when the call is made through
window.location.href365体育足球滚球比分 or in other words, how can i get the access token such that the whole page does not load, and is it possible to resolve the above error???