Throw informative errors for methods that don't work in browser
bttmly opened this issue · comments
Some methods (stats.playerSplits
and stats.scoreboard
) the NBA checks referrer
headers and denies access unless the value is stats.nba.com
. We can't set headers when using JSONP so this library should throw an informative error when trying to use these methods in a browser context.
the NBA is locking down most endpoints by preventing CORS so for now this package only supports non-browser environments (node.js)