Closed tripu closed 9 years ago
In an ideal world you wouldn't have to play with strings in order to manipulate the query string, but I reckon that given that you're targeting potentially old browsers this'd require a library, which wouldn't be great :)
In an ideal world you wouldn't have to play with strings in order to manipulate the query string
Definitely. I don't like playing with strings either. What do you have in mind?
Well, there's https://url.spec.whatwg.org/#api but it's not yet supported everywhere (that I know of). I know there's a JS implementation but I think it's overkill in this case, no?
Agreed, @darobin.
Correction over #12:
Add support for API keys with an
Authorization
headerapikey
parameter.My previous PR was incomplete because I wasn't handling CORS properly. This method is simpler and faster (saves one HTTP request).
Fix #4.