Added abstraction of cross domain get and post