updated methods in Access-Control-Allow-Methods
updated error message and error handling