Changed server to allow cross origin requests