utsciencestm / utsciencestm.github.io

https://utsciencestm.github.io
GNU General Public License v3.0
0 stars 0 forks source link

Authorize #13

Closed baidut closed 4 years ago

baidut commented 4 years ago

image

baidut commented 4 years ago

image

baidut commented 4 years ago

image

baidut commented 4 years ago

{ "error": "idpiframe_initialization_failed", "details": "Not a valid origin for the client: https://utsciencestm.github.io has not been whitelisted for client ID 1093544076583-03qlvcjmfb9agmfi2088baaqa92suppj.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID." }

baidut commented 4 years ago

image

baidut commented 4 years ago

idpiframe_initialization_failed: Not a valid origin for the client The Google Sign-in library requires that the domain registered in the Google Developers Console matches the domain being used to host the web page. Ensure that the origin you registered matches the URL in the browser.

baidut commented 4 years ago

{ "error": "idpiframe_initialization_failed", "details": "Cookies are not enabled in current environment." }

Doesn't support Incognito mode/inprivate mode

baidut commented 4 years ago

no need to provide API key

it works locally (localhost) but doesn't work on github pages

baidut commented 4 years ago

Solution

go to google api library and serach google sheets api enable it and create client key and add url

https://console.developers.google.com/apis/api/sheets.googleapis.com/credentials?project=quickstart-1595704227711

image