-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove corsProxy or factor out as an option #2
Comments
👍 Pull request welcome for a |
I do not want to produce bad code. Not sure how to do it better. const iheart = require('iheart')(); // default proxy
const iheart = require('iheart')({ proxy: "http://blah-blah.com" }); // use specific non-default
const iheart = require('iheart')({ proxy: null }); // no proxy Option number two: const iheart = require('iheart'); // good old syntax here
iheart.setOptions({ proxy: "http://blah-blah.com" }); Or maybe option number 3 (no idea what). |
IMO we should add an Options parameter to each of the API functions and have |
So |
Looks equally bad. User will have to carry that option everywhere. |
Indeed, but you have to do the same thing with i.e. |
Not totally relevant to the issue at hand, but https://cors.now.sh is back up |
https://cors.now.sh/ seems to be dead
I removed any references to
corsProxy
variable to make this module work.Either remove it or make it a configurable option, in case if anyone still needs a proxy.
Thanks
The text was updated successfully, but these errors were encountered: