Adding CORS headers to DropWizard API

In your DropWizard Application class, add the following to allow the hosts in allowedOrigins to do GET,PUT,POST,DELETE,OPTIONS to your API.