You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This component makes cross browser calls because it relies on an external rest service. The current implementation uses the HttpProxy developed by GeoSolutions. Hence, you need to add Google url to proxy config file proxy.properties.
Add www.googleapis.com to hostnameWhitelist,
Add (.google.) (or another regexp) to reqtypeWhitelist.fdh,
Redeploy http_proxy, if necessary.
Usage examples
varshortener=newGoogle.Shortener({appid: /* PUT HERE YOUR GOOGLE API KEY */}).failure(function(response){/* CALLBACK METHOD IF SOMETHING WENT WRONG */});});// async method to shorten urlsshortener.shorten(/* YOUR VERY LONG URL */,function(response){/* response.id contains your short URL */});