cors-anywhere icon indicating copy to clipboard operation
cors-anywhere copied to clipboard

Cors Anywhere fails when used alongside browserify

Open idmadj opened this issue 5 years ago • 0 comments

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.

idmadj avatar Jul 08 '19 23:07 idmadj