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.

 

Leave a Reply

Your email address will not be published. Required fields are marked *