added support for per target settings
added OPTIONS http method to suported CORS methods in the webservice