trying to add cross origin request cors
added cors method