Sunday, 15 May 2011

javascript - window.location picks IP address and not the domain name -



javascript - window.location picks IP address and not the domain name -

i've ruby on rails website registered subdomain under godaddy.com

it works fine. when seek window.location.host, returns ip address of server , not domain name.

because of i'm getting next error google picker js api:

wrong origin value. please set - (window.location.protocol + '//' + window.location.host) of top-most page

can help ?

javascript ruby-on-rails subdomain ip-address google-picker

No comments:

Post a Comment