Make ajax proxy honour origin validation