Adding support for crossdomain middleware