Update phpdoc and add cross domain request access