made the tree fetching api cross origin