Cannot allow put method in pre flight responses

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.