Shiva Reddy
Shiva Reddy

Reputation: 33

Authorized JavaScript origins not working localhost

Authorized JavaScript origins not working while Create client ID. i am trying to integrate google login from in my html page .. my localhost path is http://localhost/charts/ .. while adding http://localhost/charts/ to Authorized JavaScript origins files textbox showing error like this:Origin URIs must not contain a path or end with "/": http://localhost/charts/.. if any one can help me... here i am sending error screenshot

Upvotes: 3

Views: 11014

Answers (3)

yaach
yaach

Reputation: 462

I had a similar issue when trying to follow up a quickstart. I added http://localhost:8000 to Authorized Javascript origins, and then I went right after to load my browser - it didn't work. However it worked after 5 minutes or so. I guess you have to give it some time for the changes on the dashboard to take effect.

Some tips that might help:

  • Check if you are using a port and include it on the URIs.
  • Check your browser console for possible error information.
  • In my case I used python dev local server (http.server) to serve my app.

Upvotes: 1

wuno
wuno

Reputation: 9875

Please try removing /charts from the URL

http://localhost

Upvotes: 1

Sunil Dora
Sunil Dora

Reputation: 1472

Try this will work http://localhost

hope this will helps you.

Upvotes: 10

Related Questions