javascript - Uncaught Error: Google Plus response -


i writing chrome extension using google plus login button.
problem authenticate instead of response throws exception : uncaught error: g`{"iss":"accounts.google.com","azp":"822768261690-d94r53ch5tsma36qvjbmt0rhfh2vcbie.apps.googleusercontent.com","at_hash":"g8ulzciki58rsz77n3f9pa","c_hash":"dchw3chfaqayaa8akuuxmw","aud":"822768261690-d94r53ch5tsma36qvjbmt0rhfh2vcbie.apps.googleusercontent.com","sub":"116366060578573041256","iat":1376935399,"exp":1376939299}

i confused code precisely same in quick start application javascript. client id configured according chrome extension id. project has been untouched week. working before , strange error.

has seen before ?

i had issue , turned out related content-security-policy. error thrown when script attempts call eval(). added unsafe-eval header e.g.:

content-security-policy: script-src 'unsafe-eval' 'self' https://*.google.com ... 

if using content-security-policy, might causing error. note: using unsafe-eval not ideal security perspective! content-security-policy


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -