- added set Access-Control-Allow-Origin headers for all rest api methods