Added CORS (Cross Origin Resource Sharing) support via CORS environment variable for (AJAX) metadata requests.