GPII-217: added CORS support to prefs server.