Fixed access-control-allow-origin not allowed error