Configure server to allow CORS requests to API