javascript - Glassdoor API 404 error chrome extension -
i'm writing chrome extension retrieves ratings companies on glassdoor. accomplish have content script send message background script make xmlhttprequest.
the url used request was
"http://api.glassdoor.com/api/api.htmv=1&format=json&t.p=177556&t.k=kvtuqd0ashs&userip=" + address + "&actions=employers&q=" + companyname + "&useragent=" + navigator.useragent
both address , companyname defined before this.
i got message: failed load resource: server responded status of 404 (not found) when ran script.
in addition, got message: xmlhttprequest cannot load [above link]. no 'access-control-allow-origin' header present on requested resource. origin 'chrome-extension://maonbpchkpdlcpobmfdkkephdbniognp' therefore not allowed access. response had http status code 404.
i checked format of api call several times, , can't find problem it. changed permissions in manifest file "all_urls" got rid of no access control error failed load resource error remained.
any idea problem is?
Comments
Post a Comment