jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 270 forks source link

browserify issue #92

Closed yoorek closed 10 years ago

yoorek commented 10 years ago

I read all comments about issues with browserify and still don't know how to make it work.

I do:

require('xdomain/dist/0.6/xdomain');

but get:

Uncaught ReferenceError: xhook is not defined
jpillora commented 10 years ago

This should be fixed now, see example http://jpillora.com/xdomain/example/browserify/