I experienced this error as the application required some more tables in the database.Also make sure CORS enabled because only GET and POST methods are normally allowed by default and we will not be able to make PUT and DELETE requests.
I am writing my experiences and learning to help others