SimplerWeather icon indicating copy to clipboard operation
SimplerWeather copied to clipboard

Switched getJson to $.ajax with jsonp to avoid CORS errors

Open SaFrMo opened this issue 6 years ago • 2 comments

Thanks for this repo, it's super useful with the deprecation of the Yahoo API! I was running into CORS errors so I switched $.getJson to $.ajax with a jsonp data type as a fix - thought this might be helpful for others. Thanks again!

SaFrMo avatar Jan 09 '19 16:01 SaFrMo

This would solve a lot of issues. +1

bgallagh3r avatar Jan 23 '19 14:01 bgallagh3r

@SaFrMo Does this method work with specifying the API Key directly or does one still have to use a proxy? Using your fork, my success callback is called, but passed undefined.

morgant avatar Mar 25 '19 15:03 morgant