cors-anywhere
cors-anywhere copied to clipboard
Cors Anywhere fails when used alongside browserify
Because of an issue in pre-1.15.2 http-proxy, cors-anywhere fails with the following error whenever it is used alongside browserify:
TypeError: Cannot set property 'createProxy' of undefined
See https://github.com/facebook/jest/issues/1776 and https://github.com/http-party/node-http-proxy/pull/1039.
This makes it impossible to use cors-anywhere in Jest, for instance.
Simply bumping the http-proxy dependency to ^1.15.2 seems to take care of the issue.