Edited endpoint header to allow cross origin requests.