Skip to content

Cors Anywhere fails when used alongside browserify #182

@idmadj

Description

@idmadj

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 jestjs/jest#1776 and http-party/node-http-proxy#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions