added builtin support for handling cross domain request